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/stc/ccommon.h | |
| parent | da14db1a3b3570d52f22c7ae4027d1a53b6ac862 (diff) | |
| download | STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.tar.gz STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.zip | |
Renamed (most internal "class" type) crawstr => ccharptr
Diffstat (limited to 'include/stc/ccommon.h')
| -rw-r--r-- | include/stc/ccommon.h | 12 |
1 files changed, 6 insertions, 6 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)) |
