summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-07-16 23:52:16 +0200
committerTyge Løvset <[email protected]>2020-07-16 23:52:16 +0200
commit2d04857e42a08d7d5428c78463b668f15d4513f5 (patch)
tree0adea8b76cebf5c1f65a4fb259bda51308d82698 /examples
parent44c2d2e9a40da9a4c10d128bbad38e3d1802d361 (diff)
downloadSTC-modified-2d04857e42a08d7d5428c78463b668f15d4513f5.tar.gz
STC-modified-2d04857e42a08d7d5428c78463b668f15d4513f5.zip
Updated includes to reflect rename of cvec.h and cstr.h
Diffstat (limited to 'examples')
-rw-r--r--examples/advanced.c2
-rw-r--r--examples/benchmark.c2
-rw-r--r--examples/complex.c2
-rw-r--r--examples/demos.c4
-rw-r--r--examples/geek2.c2
-rw-r--r--examples/geek3.c2
-rw-r--r--examples/geek4.c4
-rw-r--r--examples/geek5.c4
-rw-r--r--examples/prime.c2
9 files changed, 12 insertions, 12 deletions
diff --git a/examples/advanced.c b/examples/advanced.c
index c4c13f10..e6b4ad2a 100644
--- a/examples/advanced.c
+++ b/examples/advanced.c
@@ -12,7 +12,7 @@
*/
#include <stdio.h>
#include <stc/chash.h>
-#include <stc/cstring.h>
+#include <stc/cstr.h>
// Viking view struct -----------------------
diff --git a/examples/benchmark.c b/examples/benchmark.c
index 45d16135..31b36b1a 100644
--- a/examples/benchmark.c
+++ b/examples/benchmark.c
@@ -1,5 +1,5 @@
#include "../stc/crandom.h"
-#include "../stc/cstring.h"
+#include "../stc/cstr.h"
#include "../stc/chash.h"
#include "others/khash.h"
diff --git a/examples/complex.c b/examples/complex.c
index 4434c9c9..feb01db2 100644
--- a/examples/complex.c
+++ b/examples/complex.c
@@ -1,4 +1,4 @@
-#include "../stc/cstring.h"
+#include "../stc/cstr.h"
#include "../stc/chash.h"
#include "../stc/clist.h"
#include "../stc/carray.h"
diff --git a/examples/demos.c b/examples/demos.c
index 3bff2b5c..037983e0 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -1,8 +1,8 @@
-#include "../stc/cvector.h"
+#include "../stc/cvec.h"
#include "../stc/clist.h"
#include "../stc/carray.h"
#include "../stc/chash.h"
-#include "../stc/cstring.h"
+#include "../stc/cstr.h"
void stringdemo1()
diff --git a/examples/geek2.c b/examples/geek2.c
index 53688dd3..7ce4fd2d 100644
--- a/examples/geek2.c
+++ b/examples/geek2.c
@@ -1,7 +1,7 @@
#ifndef __cplusplus
#include <stc/chash.h>
-#include <stc/cstring.h>
+#include <stc/cstr.h>
declare_CMap_str(ss, CStr, cstr_destroy);
declare_CSet_str(ss);
diff --git a/examples/geek3.c b/examples/geek3.c
index ec58ccea..4db84d13 100644
--- a/examples/geek3.c
+++ b/examples/geek3.c
@@ -1,7 +1,7 @@
// xx3.c
#include <stc/chash.h>
-#include <stc/cstring.h>
+#include <stc/cstr.h>
declare_CMap_str(si, int);
declare_CMap_str(ss, CStr, cstr_destroy);
diff --git a/examples/geek4.c b/examples/geek4.c
index c514e601..3f0f7f79 100644
--- a/examples/geek4.c
+++ b/examples/geek4.c
@@ -34,8 +34,8 @@ Efficient Approach: For all the words of the first sentence, we can check if it
// C implementation of the approach
#include <stc/chash.h>
-#include <stc/cvector.h>
-#include <stc/cstring.h>
+#include <stc/cvec.h>
+#include <stc/cstr.h>
declare_CVec_str(s);
declare_CMap_str(sb, bool);
diff --git a/examples/geek5.c b/examples/geek5.c
index 759d22e3..0af114b7 100644
--- a/examples/geek5.c
+++ b/examples/geek5.c
@@ -18,8 +18,8 @@ Output: 0
#ifndef __cplusplus
#include <stc/chash.h>
-#include <stc/cvector.h>
-#include <stc/cstring.h>
+#include <stc/cvec.h>
+#include <stc/cstr.h>
declare_CVec(i, int);
declare_CMap_str(sv, CVec_i, cvec_i_destroy);
diff --git a/examples/prime.c b/examples/prime.c
index 65b51057..f327fb4e 100644
--- a/examples/prime.c
+++ b/examples/prime.c
@@ -3,7 +3,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include "stc/cvector.h"
+#include "stc/cvec.h"
static inline void setBit(uint32_t* a, const size_t i) { a[i >> 5] |= 1u << (i & 31); }
static inline void clearBit(uint32_t* a, const size_t i) { a[i >> 5] &= ~(1u << (i & 31)); }