diff options
| author | Tyge Løvset <[email protected]> | 2023-08-02 16:31:45 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-02 16:31:45 +0200 |
| commit | d65debf1846fad56e59852e4003e24f99bfd1517 (patch) | |
| tree | db5207bf242ac5263af1809ae19a929e1978462d /include | |
| parent | da14db1a3b3570d52f22c7ae4027d1a53b6ac862 (diff) | |
| download | STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.tar.gz STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.zip | |
Renamed (most internal "class" type) crawstr => ccharptr
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/ccommon.h | 12 | ||||
| -rw-r--r-- | include/stc/priv/template.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index 77f754fa..2528b94f 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -124,12 +124,12 @@ typedef long long _llong; #define c_litstrlen(literal) (c_sizeof("" literal) - 1) #define c_arraylen(a) (intptr_t)(sizeof(a)/sizeof 0[a]) -// Non-owning c-string -typedef const char* crawstr; -#define crawstr_clone(s) (s) -#define crawstr_drop(p) ((void)p) -#define crawstr_cmp(xp, yp) strcmp(*(xp), *(yp)) -#define crawstr_hash(p) cstrhash(*(p)) +// Non-owning c-string "class" +typedef const char* ccharptr; +#define ccharptr_cmp(xp, yp) strcmp(*(xp), *(yp)) +#define ccharptr_hash(p) cstrhash(*(p)) +#define ccharptr_clone(s) (s) +#define ccharptr_drop(p) ((void)p) #define c_sv(...) c_MACRO_OVERLOAD(c_sv, __VA_ARGS__) #define c_sv_1(lit) c_sv_2(lit, c_litstrlen(lit)) diff --git a/include/stc/priv/template.h b/include/stc/priv/template.h index 0f4ac893..49b4d8da 100644 --- a/include/stc/priv/template.h +++ b/include/stc/priv/template.h @@ -111,7 +111,7 @@ #if defined i_key_str #define i_keyclass cstr - #define i_rawclass crawstr + #define i_rawclass ccharptr #ifndef i_tag #define i_tag str #endif |
