{"id":34851942,"url":"https://github.com/osfabias/dementia.c","last_synced_at":"2026-05-20T23:10:01.201Z","repository":{"id":323311007,"uuid":"1092787943","full_name":"osfabias/dementia.c","owner":"osfabias","description":"For when your memory starts losing track...","archived":false,"fork":false,"pushed_at":"2025-11-09T13:10:50.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"0.1","last_synced_at":"2025-11-09T13:19:27.227Z","etag":null,"topics":["c","cmake","library","memory-management"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osfabias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-09T10:11:24.000Z","updated_at":"2025-11-09T13:10:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/osfabias/dementia.c","commit_stats":null,"previous_names":["osfabias/dementia.c"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/osfabias/dementia.c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfabias%2Fdementia.c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfabias%2Fdementia.c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfabias%2Fdementia.c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfabias%2Fdementia.c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfabias","download_url":"https://codeload.github.com/osfabias/dementia.c/tar.gz/refs/heads/0.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfabias%2Fdementia.c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28035467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"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":["c","cmake","library","memory-management"],"created_at":"2025-12-25T19:24:55.131Z","updated_at":"2025-12-25T19:24:56.373Z","avatar_url":"https://github.com/osfabias.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dementia.c 🧠\n\n`dementia.c` is a C library for memory management. It helps you to keep track of all your memory.\n\n## Table of Contents\n\n- [Building the Project](#building-the-project)\n- [Build Options](#build-options)\n- [Using as a CMake Subdirectory](#using-as-a-cmake-subdirectory)\n\n## Building the Project\n\n### Prerequisites\n\n- CMake 3.16 or higher\n- C17 compatible compiler (GCC, Clang, MSVC)\n- Git (for cloning)\n\n### Basic Build\n\n```bash\n# Clone the repository\ngit clone git@github.com:osfabias/dementia.c.git\ncd dementia\n\n# Create build directory\nmkdir build\ncd build\n\n# Configure and build\ncmake ..\nmake\n```\n\n### Build with Specific Options\n\n```bash\n# Build with all features enabled\ncmake -DDEMENTIA_BUILD_SHARED=ON -DDEMENTIA_BUILD_EXAMPLE=ON -DDEMENTIA_BUILD_TESTS=ON ..\n\n# Build in Release mode\ncmake -DCMAKE_BUILD_TYPE=Release ..\n```\n\n## Build Options\n\nThe project supports several CMake options to customize the build:\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `CMAKE_BUILD_TYPE` | `Debug` | Build type: `Debug`, `Release`, `RelWithDebInfo`, `MinSizeRel` |\n| `DEMENTIA_BUILD_SHARED` | `OFF` | Build library as a shared library instead of static |\n| `DEMENTIA_BUILD_EXAMPLE` | `ON` (standalone) | Build example program demonstrating library usage |\n| `DEMENTIA_BUILD_TESTS` | `ON` (standalone) | Build test programs |\n\n### Build Type Details\n\n- **Debug**: Includes debug symbols, no optimization, enables `__DEMENTIA_DEBUG__` macro\n- **Release**: Optimized for performance, no debug symbols\n- **RelWithDebInfo**: Optimized with debug symbols\n- **MinSizeRel**: Optimized for minimal size\n\n### Compiler-Specific Features\n\n- **GCC/Clang**: Uses `-Wall -Wextra -Wpedantic` with additional warnings\n- **MSVC**: Uses `/W4` for high warning level\n- **All**: Position-independent code enabled, C17 standard enforced\n\n## Using as a CMake Subdirectory\n\nTo use this library in your own CMake project:\n\n```cmake\n# Add the library as a subdirectory\nadd_subdirectory(dementia)\n\n# Link the library to your target\ntarget_link_libraries(your_target PRIVATE dementia)\n```\n\nThe library will be built as a static library by default. To use as a shared library:\n\n```cmake\nset(DEMENTIA_BUILD_SHARED ON)\nadd_subdirectory(dementia)\ntarget_link_libraries(your_target PRIVATE dementia)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfabias%2Fdementia.c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfabias%2Fdementia.c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfabias%2Fdementia.c/lists"}