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 /docs | |
| parent | da14db1a3b3570d52f22c7ae4027d1a53b6ac862 (diff) | |
| download | STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.tar.gz STC-modified-d65debf1846fad56e59852e4003e24f99bfd1517.zip | |
Renamed (most internal "class" type) crawstr => ccharptr
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/algorithm_api.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/algorithm_api.md b/docs/algorithm_api.md index 40ff32d6..127aa120 100644 --- a/docs/algorithm_api.md +++ b/docs/algorithm_api.md @@ -275,12 +275,13 @@ int* ip = c_const_cast(int*, cs); // issues a warning! ### Predefined template parameter functions -**crawstr** - Non-owned `const char*` "class" element type: `#define i_keyclass crawstr` +**ccharptr** - Non-owning `const char*` "class" element type: `#define i_keyclass ccharptr` ```c -typedef const char* crawstr; -int crawstr_cmp(const crawstr* x, const crawstr* y); -bool crawstr_eq(const crawstr* x, const crawstr* y); -uint64_t crawstr_hash(const crawstr* x); +typedef const char* ccharptr; +int ccharptr_cmp(const ccharptr* x, const ccharptr* y); +uint64_t ccharptr_hash(const ccharptr* x); +ccharptr ccharptr_clone(ccharptr sp); +void ccharptr_drop(ccharptr* x); ``` Default implementations ```c |
