├── .github └── workflows │ ├── macos-apple-clang.yml │ ├── ubuntu-latest-clang.yml │ ├── ubuntu-latest-gcc.yml │ ├── win-msvc.yml │ ├── win-msys2-clang.yml │ └── win-msys2-gcc.yml ├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── benchmark ├── benchmark.sh ├── common.c ├── common.h ├── display.py ├── img │ ├── clang.png │ └── gcc.png ├── makefile ├── sgc.c ├── shell.nix └── std.cpp ├── examples ├── algorithm.c ├── error.c ├── fs.c ├── list_of_vectors.c ├── makefile ├── map.c ├── separate_compilation.c ├── sp_definitions.c ├── sp_headers.h ├── string.c ├── struct.c └── vector.c ├── include └── sgc │ ├── algorithm.h │ ├── deque.h │ ├── detail │ ├── sgc_allocator.h │ ├── sgc_circular_buffer_common.h │ ├── sgc_common.h │ ├── sgc_deque_common.h │ ├── sgc_dictionary_common.h │ ├── sgc_error_handlers.h │ ├── sgc_fs_hash_map_common.h │ ├── sgc_hash_map_common.h │ ├── sgc_iterator.h │ ├── sgc_list_common.h │ ├── sgc_log.h │ ├── sgc_prime.h │ ├── sgc_primitive_types.h │ ├── sgc_priority_queue_common.h │ ├── sgc_queue_common.h │ ├── sgc_rbtree_common.h │ ├── sgc_stack_common.h │ ├── sgc_tree_node.h │ ├── sgc_utils.h │ └── sgc_vector_common.h │ ├── forward_list.h │ ├── fs_deque.h │ ├── fs_priority_queue.h │ ├── fs_queue.h │ ├── fs_stack.h │ ├── fs_unordered_map.h │ ├── fs_unordered_set.h │ ├── fs_vector.h │ ├── list.h │ ├── map.h │ ├── priority_queue.h │ ├── queue.h │ ├── set.h │ ├── stack.h │ ├── string.h │ ├── unordered_map.h │ ├── unordered_set.h │ └── vector.h ├── meson.build ├── subprojects └── unity.wrap └── test ├── CMakeLists.txt ├── meson.build ├── test_algorithm.c ├── test_common.h ├── test_deque.c ├── test_forward_list.c ├── test_fs_deque.c ├── test_fs_priority_queue.c ├── test_fs_queue.c ├── test_fs_stack.c ├── test_fs_unordered_map.c ├── test_fs_unordered_set.c ├── test_fs_vector.c ├── test_list.c ├── test_map.c ├── test_priority_queue.c ├── test_queue.c ├── test_set.c ├── test_stack.c ├── test_string.c ├── test_unordered_map.c ├── test_unordered_set.c ├── test_utils.c └── test_vector.c /.github/workflows/macos-apple-clang.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/macos-apple-clang.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu-latest-clang.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/ubuntu-latest-clang.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu-latest-gcc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/ubuntu-latest-gcc.yml -------------------------------------------------------------------------------- /.github/workflows/win-msvc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/win-msvc.yml -------------------------------------------------------------------------------- /.github/workflows/win-msys2-clang.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/win-msys2-clang.yml -------------------------------------------------------------------------------- /.github/workflows/win-msys2-gcc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.github/workflows/win-msys2-gcc.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/benchmark.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/benchmark.sh -------------------------------------------------------------------------------- /benchmark/common.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/common.c -------------------------------------------------------------------------------- /benchmark/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/common.h -------------------------------------------------------------------------------- /benchmark/display.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/display.py -------------------------------------------------------------------------------- /benchmark/img/clang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/img/clang.png -------------------------------------------------------------------------------- /benchmark/img/gcc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/img/gcc.png -------------------------------------------------------------------------------- /benchmark/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/makefile -------------------------------------------------------------------------------- /benchmark/sgc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/sgc.c -------------------------------------------------------------------------------- /benchmark/shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/shell.nix -------------------------------------------------------------------------------- /benchmark/std.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/benchmark/std.cpp -------------------------------------------------------------------------------- /examples/algorithm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/algorithm.c -------------------------------------------------------------------------------- /examples/error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/error.c -------------------------------------------------------------------------------- /examples/fs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/fs.c -------------------------------------------------------------------------------- /examples/list_of_vectors.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/list_of_vectors.c -------------------------------------------------------------------------------- /examples/makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/makefile -------------------------------------------------------------------------------- /examples/map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/map.c -------------------------------------------------------------------------------- /examples/separate_compilation.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/separate_compilation.c -------------------------------------------------------------------------------- /examples/sp_definitions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/sp_definitions.c -------------------------------------------------------------------------------- /examples/sp_headers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/sp_headers.h -------------------------------------------------------------------------------- /examples/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/string.c -------------------------------------------------------------------------------- /examples/struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/struct.c -------------------------------------------------------------------------------- /examples/vector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/examples/vector.c -------------------------------------------------------------------------------- /include/sgc/algorithm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/algorithm.h -------------------------------------------------------------------------------- /include/sgc/deque.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/deque.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_allocator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_allocator.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_circular_buffer_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_circular_buffer_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_deque_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_deque_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_dictionary_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_dictionary_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_error_handlers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_error_handlers.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_fs_hash_map_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_fs_hash_map_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_hash_map_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_hash_map_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_iterator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_iterator.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_list_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_list_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_log.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_prime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_prime.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_primitive_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_primitive_types.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_priority_queue_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_priority_queue_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_queue_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_queue_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_rbtree_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_rbtree_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_stack_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_stack_common.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_tree_node.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | -------------------------------------------------------------------------------- /include/sgc/detail/sgc_utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_utils.h -------------------------------------------------------------------------------- /include/sgc/detail/sgc_vector_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/detail/sgc_vector_common.h -------------------------------------------------------------------------------- /include/sgc/forward_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/forward_list.h -------------------------------------------------------------------------------- /include/sgc/fs_deque.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_deque.h -------------------------------------------------------------------------------- /include/sgc/fs_priority_queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_priority_queue.h -------------------------------------------------------------------------------- /include/sgc/fs_queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_queue.h -------------------------------------------------------------------------------- /include/sgc/fs_stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_stack.h -------------------------------------------------------------------------------- /include/sgc/fs_unordered_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_unordered_map.h -------------------------------------------------------------------------------- /include/sgc/fs_unordered_set.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_unordered_set.h -------------------------------------------------------------------------------- /include/sgc/fs_vector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/fs_vector.h -------------------------------------------------------------------------------- /include/sgc/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/list.h -------------------------------------------------------------------------------- /include/sgc/map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/map.h -------------------------------------------------------------------------------- /include/sgc/priority_queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/priority_queue.h -------------------------------------------------------------------------------- /include/sgc/queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/queue.h -------------------------------------------------------------------------------- /include/sgc/set.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/set.h -------------------------------------------------------------------------------- /include/sgc/stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/stack.h -------------------------------------------------------------------------------- /include/sgc/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/string.h -------------------------------------------------------------------------------- /include/sgc/unordered_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/unordered_map.h -------------------------------------------------------------------------------- /include/sgc/unordered_set.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/unordered_set.h -------------------------------------------------------------------------------- /include/sgc/vector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/include/sgc/vector.h -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/meson.build -------------------------------------------------------------------------------- /subprojects/unity.wrap: -------------------------------------------------------------------------------- 1 | [wrap-git] 2 | url = https://github.com/red0124/Unity 3 | revision = master 4 | -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/meson.build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/meson.build -------------------------------------------------------------------------------- /test/test_algorithm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_algorithm.c -------------------------------------------------------------------------------- /test/test_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_common.h -------------------------------------------------------------------------------- /test/test_deque.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_deque.c -------------------------------------------------------------------------------- /test/test_forward_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_forward_list.c -------------------------------------------------------------------------------- /test/test_fs_deque.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_deque.c -------------------------------------------------------------------------------- /test/test_fs_priority_queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_priority_queue.c -------------------------------------------------------------------------------- /test/test_fs_queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_queue.c -------------------------------------------------------------------------------- /test/test_fs_stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_stack.c -------------------------------------------------------------------------------- /test/test_fs_unordered_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_unordered_map.c -------------------------------------------------------------------------------- /test/test_fs_unordered_set.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_unordered_set.c -------------------------------------------------------------------------------- /test/test_fs_vector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_fs_vector.c -------------------------------------------------------------------------------- /test/test_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_list.c -------------------------------------------------------------------------------- /test/test_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_map.c -------------------------------------------------------------------------------- /test/test_priority_queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_priority_queue.c -------------------------------------------------------------------------------- /test/test_queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_queue.c -------------------------------------------------------------------------------- /test/test_set.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_set.c -------------------------------------------------------------------------------- /test/test_stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_stack.c -------------------------------------------------------------------------------- /test/test_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_string.c -------------------------------------------------------------------------------- /test/test_unordered_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_unordered_map.c -------------------------------------------------------------------------------- /test/test_unordered_set.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_unordered_set.c -------------------------------------------------------------------------------- /test/test_utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_utils.c -------------------------------------------------------------------------------- /test/test_vector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red0124/sgc/HEAD/test/test_vector.c --------------------------------------------------------------------------------