{"id":15360014,"url":"https://github.com/fish2000/iod-symbolizer","last_synced_at":"2026-03-11T04:32:09.780Z","repository":{"id":32581180,"uuid":"36164277","full_name":"fish2000/iod-symbolizer","owner":"fish2000","description":"Parse C/C++/Objective-C/Objective-C++ source for IOD symbols and output header files","archived":false,"fork":false,"pushed_at":"2025-04-01T18:55:06.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-27T22:24:38.591Z","etag":null,"topics":["cmake","command-line-tool","cplusplus-14","iod","iod-symbols","preprocessor","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fish2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-05-24T09:05:38.000Z","updated_at":"2025-04-01T18:55:10.000Z","dependencies_parsed_at":"2025-04-15T07:57:51.215Z","dependency_job_id":"1bb6d4b6-2c14-4426-bd39-703efde49f59","html_url":"https://github.com/fish2000/iod-symbolizer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fish2000/iod-symbolizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fish2000%2Fiod-symbolizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fish2000%2Fiod-symbolizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fish2000%2Fiod-symbolizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fish2000%2Fiod-symbolizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fish2000","download_url":"https://codeload.github.com/fish2000/iod-symbolizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fish2000%2Fiod-symbolizer/sbom","scorecard":{"id":401311,"data":{"date":"2025-08-11","repo":{"name":"github.com/fish2000/iod-symbolizer","commit":"ccb3691e4f2ed3d3cb2514215a99312c38e20143"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.6 not signed: https://api.github.com/repos/fish2000/iod-symbolizer/releases/1631545","Warn: release artifact v0.2.6 does not have provenance: https://api.github.com/repos/fish2000/iod-symbolizer/releases/1631545"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T20:09:16.008Z","repository_id":32581180,"created_at":"2025-08-18T20:09:16.008Z","updated_at":"2025-08-18T20:09:16.008Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","command-line-tool","cplusplus-14","iod","iod-symbols","preprocessor","python"],"created_at":"2024-10-01T12:47:18.172Z","updated_at":"2026-03-11T04:32:09.761Z","avatar_url":"https://github.com/fish2000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"iod-symbolizer\n==============\n\nA parser for [IOD symbols](https://github.com/matt-42/iod), in C/C++/Objective-C/Objective-C++ source files. Given the following input:\n\n```c++\n// Copyright 2012-2014 Alexander Böhn \u003cfish2000@gmail.com\u003e\n// License: MIT (see COPYING.MIT file)\n\n#ifndef LIBIMREAD_IO_PNG_HH_\n#define LIBIMREAD_IO_PNG_HH_\n\n#include \u003ccstring\u003e\n#include \u003ccsetjmp\u003e\n#include \u003cvector\u003e\n#include \u003csstream\u003e\n\n#include \u003clibimread/libimread.hpp\u003e\n#include \u003clibimread/base.hh\u003e\n#include \u003clibimread/options.hh\u003e\n\nnamespace im {\n    \n    /*\n    using namespace symbols::s;\n    \n    auto options =\n    D(\n        _compression_level     = -1,\n        _backend               = \"io_png\"\n    );\n    */\n    \n    namespace PNG {\n    \n        struct format {\n        \n            static auto opts_init() {\n                return D(\n                    _signature = \"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\"\n                );\n            }\n        \n            using options_type = decltype(format::opts_init());\n            static const options_type options;\n        };\n    \n    }\n    \n    #define PNG_SIGNATURE \"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\"\n    \n    // namespace signature {\n    //     struct PNGSignature {\n    //         PNGSignature() {}\n    //         operator char const*() { return \"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\"; }\n    //     };\n    //     static const PNGSignature PNG;\n    // }\n    \n    class PNGFormat : public ImageFormat {\n        public:\n            typedef std::true_type can_read;\n            typedef std::true_type can_write;\n            \n            /// NOT AN OVERRIDE:\n            static bool match_format(byte_source *src) {\n                return match_magic(src, PNG_SIGNATURE, 8);\n            }\n            \n            virtual std::unique_ptr\u003cImage\u003e read(byte_source *src,\n                                                ImageFactory *factory,\n                                                const options_map \u0026opts) override;\n            \n            virtual void write(Image \u0026input,\n                            byte_sink *output,\n                            const options_map \u0026opts) override;\n    };\n    \n    namespace format {\n        using PNG = PNGFormat;\n    }\n\n}\n\n\n#endif /// LIBIMREAD_IO_PNG_HH_\n```\n\n... the `symbolizer` command will find the following symbols:\n\n```c++\n_compression_level\n_backend\n_signature\n```\n\nAnd by default, the generated header file will look like so:\n\n```c++\n///\n/// Generated by iod-symbolizer at 2015-05-24T05:02:20.448982\n/// iod-symbolizer by Alexander Bohn -- http://github.com/fish2000/iod-symbolizer\n/// IOD library by Matthieu Garrigues -- https://github.com/matt-42/iod\n///\n\n#include \u003ciod/symbol.hh\u003e\n\n\n#ifndef IOD_SYMBOL_assert\n    #define IOD_SYMBOL_assert\n    iod_define_symbol(assert)\n#endif\n\n\n#ifndef IOD_SYMBOL_color_map\n    #define IOD_SYMBOL_color_map\n    iod_define_symbol(color_map)\n#endif\n\n\n#ifndef IOD_SYMBOL_compression_level\n    #define IOD_SYMBOL_compression_level\n    iod_define_symbol(compression_level)\n#endif\n\n\n#ifndef IOD_SYMBOL_x_\n    #define IOD_SYMBOL_x_\n    iod_define_symbol(x_)\n#endif\n\n\n#ifndef IOD_SYMBOL_signature\n    #define IOD_SYMBOL_signature\n    iod_define_symbol(signature)\n#endif\n\n\n#ifndef IOD_SYMBOL_fd\n    #define IOD_SYMBOL_fd\n    iod_define_symbol(fd)\n#endif\n\n\n#ifndef IOD_SYMBOL_pitch\n    #define IOD_SYMBOL_pitch\n    iod_define_symbol(pitch)\n#endif\n\n\n#ifndef IOD_SYMBOL_backend\n    #define IOD_SYMBOL_backend\n    iod_define_symbol(backend)\n#endif\n```\n\nBy default, the generated header is written to STDOUT. Run the symbolizer like so to write to a specific file:\n\n```bash\n$ symbolizer DIR0 DIR1 DIR2 -o symbols.hh\n```\n\nInstall\n-------\n\nInstall with Pip, via PyPI:\n\n```bash\n$ pip install -U iod-symbolizer\n```\n\n… Or via GitHub:\n\n```bash\n$ git clone https://github.com/fish2000/iod-symbolizer.git\n$ cd iod-symbolizer\n$ pip install -U -r requirements.txt\n$ pip install -U .\n```\n\nQuestions?\n----------\n\nContact me, I welcome all inquiries: fish2000, at the geemail, etc etc. I am also available for hire!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffish2000%2Fiod-symbolizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffish2000%2Fiod-symbolizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffish2000%2Fiod-symbolizer/lists"}