summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-13 08:36:14 +0200
committertylov <[email protected]>2023-07-13 13:03:51 +0200
commit0073f0a2d67239f019041f07d9a322df03fc7ae4 (patch)
tree51e2e31d5159d2be013c54a94d3b3ff5ef624edb /misc/examples
parentebe5abc29d51c643520301e42124365477f44957 (diff)
downloadSTC-modified-0073f0a2d67239f019041f07d9a322df03fc7ae4.tar.gz
STC-modified-0073f0a2d67239f019041f07d9a322df03fc7ae4.zip
Moved c_defer() macro from raii.h to ccommon.h. Some changes in cspan.
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/astar.c1
-rw-r--r--misc/examples/bits.c1
-rw-r--r--misc/examples/box2.c1
-rw-r--r--misc/examples/convert.c1
-rw-r--r--misc/examples/person_arc.c1
-rw-r--r--misc/examples/regex_replace.c1
-rw-r--r--misc/examples/sorted_map.c1
-rw-r--r--misc/examples/unordered_set.c1
8 files changed, 0 insertions, 8 deletions
diff --git a/misc/examples/astar.c b/misc/examples/astar.c
index 44cdefee..590b7952 100644
--- a/misc/examples/astar.c
+++ b/misc/examples/astar.c
@@ -6,7 +6,6 @@
// https://www.redblobgames.com/pathfinding/a-star/introduction.html
#define i_implement
#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 ce8e1de4..e0a11346 100644
--- a/misc/examples/bits.c
+++ b/misc/examples/bits.c
@@ -1,6 +1,5 @@
#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 5ac706d4..eaab1c47 100644
--- a/misc/examples/box2.c
+++ b/misc/examples/box2.c
@@ -1,6 +1,5 @@
// 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 3b9dc3ec..3f2f60f6 100644
--- a/misc/examples/convert.c
+++ b/misc/examples/convert.c
@@ -1,6 +1,5 @@
#define i_implement
#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 c78b541c..3a759610 100644
--- a/misc/examples/person_arc.c
+++ b/misc/examples/person_arc.c
@@ -1,7 +1,6 @@
/* cbox: heap allocated boxed type */
#define i_implement
#include <stc/cstr.h>
-#include <stc/algo/raii.h>
typedef struct { cstr name, last; } Person;
diff --git a/misc/examples/regex_replace.c b/misc/examples/regex_replace.c
index 3a33efde..76664b1b 100644
--- a/misc/examples/regex_replace.c
+++ b/misc/examples/regex_replace.c
@@ -1,7 +1,6 @@
#define i_import
#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 2199846c..ff727632 100644
--- a/misc/examples/sorted_map.c
+++ b/misc/examples/sorted_map.c
@@ -1,7 +1,6 @@
// 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>
diff --git a/misc/examples/unordered_set.c b/misc/examples/unordered_set.c
index 006a1e80..14d69ce5 100644
--- a/misc/examples/unordered_set.c
+++ b/misc/examples/unordered_set.c
@@ -2,7 +2,6 @@
// C program to demonstrate various function of stc cset
#define i_implement
#include <stc/cstr.h>
-#include <stc/algo/raii.h>
#define i_key_str
#include <stc/cset.h>