diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-16 13:29:02 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-16 13:29:02 -0500 |
| commit | f156f915f480b46f112e4137f42d55b88c297436 (patch) | |
| tree | cb9d30e28ea35e0a7dfe60f51ba019da2f27bc32 /builtins/string.h | |
| parent | 317b8f53193e5ec14c92e229c89bc84ca32b7810 (diff) | |
Moving builtin strings over to cords
Diffstat (limited to 'builtins/string.h')
| -rw-r--r-- | builtins/string.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/builtins/string.h b/builtins/string.h index 1d6a91a4..c58c4468 100644 --- a/builtins/string.h +++ b/builtins/string.h @@ -4,16 +4,7 @@ #include <stdint.h> typedef struct { - char *data; - int64_t length:42; - uint8_t free:4, cow:1, atomic:1; - int16_t stride:16; -} Str_t; - -#define STRING(s) ((Str_t){.data=s, .length=(int32_t)(sizeof(s)), .stride=1, .free=0}) - -typedef struct { - Str_t *data; + CORD *data; unsigned long int length:42; unsigned short int free:4, cow:1, atomic:1; short int stride:16; |
