diff options
| author | Tyge Løvset <[email protected]> | 2023-05-13 11:04:11 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-13 11:04:11 +0200 |
| commit | be7d9913d4a284bdeb7f0431482b5731b5ef31df (patch) | |
| tree | 92ab761056a60961827b0025768bad9870fbc24c /misc | |
| parent | 98d131bfc1bcc8b82cb27b30ad6da176d1fed117 (diff) | |
| download | STC-modified-be7d9913d4a284bdeb7f0431482b5731b5ef31df.tar.gz STC-modified-be7d9913d4a284bdeb7f0431482b5731b5ef31df.zip | |
File priv/raii.h no longer included by stc/ccommon.h, instead moved to stc/algo/raii.h and included by stc/calgo.h
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/examples/arc_containers.c | 1 | ||||
| -rw-r--r-- | misc/examples/astar.c | 1 | ||||
| -rw-r--r-- | misc/examples/bits.c | 1 | ||||
| -rw-r--r-- | misc/examples/box2.c | 1 | ||||
| -rw-r--r-- | misc/examples/convert.c | 1 | ||||
| -rw-r--r-- | misc/examples/person_arc.c | 1 | ||||
| -rw-r--r-- | misc/examples/read.c | 1 | ||||
| -rw-r--r-- | misc/examples/regex_replace.c | 1 | ||||
| -rw-r--r-- | misc/examples/sorted_map.c | 3 | ||||
| -rw-r--r-- | misc/examples/unordered_set.c | 1 | ||||
| -rw-r--r-- | misc/tests/cregex_test.c | 1 | ||||
| -rw-r--r-- | misc/tests/cspan_test.c | 1 |
12 files changed, 13 insertions, 1 deletions
diff --git a/misc/examples/arc_containers.c b/misc/examples/arc_containers.c index 84ba8dda..d6a0afa8 100644 --- a/misc/examples/arc_containers.c +++ b/misc/examples/arc_containers.c @@ -2,6 +2,7 @@ // and demonstrate sharing and cloning of maps. #define i_static #include <stc/cstr.h> +#include <stc/algo/raii.h> #define i_type Map #define i_key_str // strings #define i_val int diff --git a/misc/examples/astar.c b/misc/examples/astar.c index 7dd12d50..dae6d609 100644 --- a/misc/examples/astar.c +++ b/misc/examples/astar.c @@ -5,6 +5,7 @@ // https://github.com/glouw/ctl/blob/master/examples/astar.c // https://www.redblobgames.com/pathfinding/a-star/introduction.html #include <stc/cstr.h> +#include <stc/algo/raii.h> #include <stdio.h> typedef struct diff --git a/misc/examples/bits.c b/misc/examples/bits.c index 1323d4e7..95452300 100644 --- a/misc/examples/bits.c +++ b/misc/examples/bits.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stc/cbits.h> +#include <stc/algo/raii.h> int main(void) { diff --git a/misc/examples/box2.c b/misc/examples/box2.c index cba255d2..33212ef4 100644 --- a/misc/examples/box2.c +++ b/misc/examples/box2.c @@ -1,5 +1,6 @@ // example: https://doc.rust-lang.org/rust-by-example/std/box.html #include <stdio.h> +#include <stc/algo/raii.h> typedef struct { double x; diff --git a/misc/examples/convert.c b/misc/examples/convert.c index 0f09e830..138035e9 100644 --- a/misc/examples/convert.c +++ b/misc/examples/convert.c @@ -1,4 +1,5 @@ #include <stc/cstr.h> +#include <stc/algo/raii.h> #define i_key_str #define i_val_str diff --git a/misc/examples/person_arc.c b/misc/examples/person_arc.c index 620d311f..c931089d 100644 --- a/misc/examples/person_arc.c +++ b/misc/examples/person_arc.c @@ -1,5 +1,6 @@ /* cbox: heap allocated boxed type */ #include <stc/cstr.h> +#include <stc/algo/raii.h> typedef struct { cstr name, last; } Person; diff --git a/misc/examples/read.c b/misc/examples/read.c index 4efdcfeb..edc89f0e 100644 --- a/misc/examples/read.c +++ b/misc/examples/read.c @@ -1,4 +1,5 @@ #include <stc/cstr.h> +#include <stc/algo/raii.h> #define i_val_str #include <stc/cvec.h> #include <errno.h> diff --git a/misc/examples/regex_replace.c b/misc/examples/regex_replace.c index d3952f50..cad195d5 100644 --- a/misc/examples/regex_replace.c +++ b/misc/examples/regex_replace.c @@ -1,6 +1,7 @@ #define i_extern #include <stc/cregex.h> #include <stc/csview.h> +#include <stc/algo/raii.h> bool add_10_years(int i, csview match, cstr* out) { if (i == 1) { // group 1 matches year diff --git a/misc/examples/sorted_map.c b/misc/examples/sorted_map.c index ae9b45a4..2199846c 100644 --- a/misc/examples/sorted_map.c +++ b/misc/examples/sorted_map.c @@ -1,9 +1,10 @@ // https://iq.opengenus.org/containers-cpp-stl/ +#include <stdio.h> +#include <stc/algo/raii.h> #define i_key int #define i_val int #include <stc/csmap.h> -#include <stdio.h> int main() { diff --git a/misc/examples/unordered_set.c b/misc/examples/unordered_set.c index 61f9cc1f..90c78521 100644 --- a/misc/examples/unordered_set.c +++ b/misc/examples/unordered_set.c @@ -1,6 +1,7 @@ // https://iq.opengenus.org/containers-cpp-stl/ // C program to demonstrate various function of stc cset #include <stc/cstr.h> +#include <stc/algo/raii.h> #define i_key_str #include <stc/cset.h> diff --git a/misc/tests/cregex_test.c b/misc/tests/cregex_test.c index aa4b2a65..07e5c3cb 100644 --- a/misc/tests/cregex_test.c +++ b/misc/tests/cregex_test.c @@ -1,6 +1,7 @@ #define i_extern #include <stc/cregex.h> #include <stc/csview.h> +#include <stc/algo/raii.h> #include "ctest.h" #define M_START(m) ((m).str - inp) diff --git a/misc/tests/cspan_test.c b/misc/tests/cspan_test.c index 5d46f579..9afa63f5 100644 --- a/misc/tests/cspan_test.c +++ b/misc/tests/cspan_test.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stc/cspan.h> +#include <stc/algo/raii.h> #include "ctest.h" using_cspan3(intspan, int); |
