diff options
| author | Tyge Løvset <[email protected]> | 2020-03-24 19:27:26 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-24 19:27:26 +0100 |
| commit | 1086f8075de19eb62fe3407a01bc2c2f353a2f93 (patch) | |
| tree | c9e1a728bb7f387efd9df25de413d131e44e1a53 /c_lib/cstring.h | |
| parent | 17261b08b01ac56bfd19733f8ff55629a9738382 (diff) | |
| download | STC-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.h | 5 |
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
|
