summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-23 14:00:47 +0200
committerTyge Løvset <[email protected]>2022-04-23 14:00:47 +0200
commit2b74b8a880d48232892ca84ac29efacd66905cd4 (patch)
tree306c25535d7983afb640739d6ad0b0e8c00a8e18 /examples
parentdd5551dec268da39ad1c5c66de014e4621d24748 (diff)
downloadSTC-modified-2b74b8a880d48232892ca84ac29efacd66905cd4.tar.gz
STC-modified-2b74b8a880d48232892ca84ac29efacd66905cd4.zip
Integrated (and removed) c_hash32 and c_hash64 into c_default_hash, which is improved. Added i_key_ssv and i_val_ssv (cstr with csview as raw-type).
Diffstat (limited to 'examples')
-rw-r--r--examples/make.sh2
-rw-r--r--examples/read.c2
-rw-r--r--examples/sso_map.c1
-rw-r--r--examples/sso_substr.c1
4 files changed, 2 insertions, 4 deletions
diff --git a/examples/make.sh b/examples/make.sh
index ef0468c7..4687ed97 100644
--- a/examples/make.sh
+++ b/examples/make.sh
@@ -1,7 +1,7 @@
#!/bin/bash
cc='gcc -s -O2 -Wall -std=c99 -pedantic'
#cc='gcc -x c++ -s -O2 -Wall -std=c++20'
-#cc='clang -s -O2 -Wall -std=c99 -pedantic -DSTC_USE_SSO'
+#cc='clang -s -O2 -Wall -std=c99 -pedantic -DSTC_OLD_CSTR'
#cc='clang'
#cc='clang -c -DSTC_HEADER'
#cc='cl -O2 -nologo -W2 -MD'
diff --git a/examples/read.c b/examples/read.c
index 127373b1..5f31e357 100644
--- a/examples/read.c
+++ b/examples/read.c
@@ -1,4 +1,4 @@
-#include <stc/alt/cstr.h>
+#include <stc/cstr.h>
#define i_val_str
#include <stc/cvec.h>
#include <errno.h>
diff --git a/examples/sso_map.c b/examples/sso_map.c
index a70722f7..d6174da8 100644
--- a/examples/sso_map.c
+++ b/examples/sso_map.c
@@ -1,4 +1,3 @@
-#define STC_USE_SSO 1
#include <stc/cstr.h>
#define i_key_str
#define i_val_str
diff --git a/examples/sso_substr.c b/examples/sso_substr.c
index 60fb9997..fdb53d0b 100644
--- a/examples/sso_substr.c
+++ b/examples/sso_substr.c
@@ -1,4 +1,3 @@
-#define STC_USE_SSO 1
#include <stc/cstr.h>
#include <stc/csview.h>