summaryrefslogtreecommitdiffhomepage
path: root/c_lib/cstring.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-24 19:27:26 +0100
committerGitHub <[email protected]>2020-03-24 19:27:26 +0100
commit1086f8075de19eb62fe3407a01bc2c2f353a2f93 (patch)
treec9e1a728bb7f387efd9df25de413d131e44e1a53 /c_lib/cstring.h
parent17261b08b01ac56bfd19733f8ff55629a9738382 (diff)
downloadSTC-modified-1086f8075de19eb62fe3407a01bc2c2f353a2f93.tar.gz
STC-modified-1086f8075de19eb62fe3407a01bc2c2f353a2f93.zip
Add files via upload
Fix
Diffstat (limited to 'c_lib/cstring.h')
-rw-r--r--c_lib/cstring.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/c_lib/cstring.h b/c_lib/cstring.h
index 1bcd3d61..869c7d5a 100644
--- a/c_lib/cstring.h
+++ b/c_lib/cstring.h
@@ -241,8 +241,9 @@ static inline CString cstring_temp(const char* str) {
// CVector / CMap API functions:
-#define cstring_getRaw(x) ((x)->str)
-static inline uint32_t cstring_hashRaw(const char** str, size_t sz_ignored) { return c_defaultHash(*str, strlen(*str)); }
+#define cstring_getRaw(x) (&(x)->str)
+#define cstring_compareRaw(x, y) strcmp(*(x), *(y))
+static inline uint32_t cstring_hashRaw(const char* const* str, size_t ignored) { return c_defaultHash(*str, strlen(*str)); }
#endif