diff options
Diffstat (limited to 'str.h')
-rw-r--r-- | str.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,7 +15,8 @@ typedef struct { Str head, tail; } Cut; -#define S(s) (Str){s,sizeof(s)-1} +#define Ss(s) {s,sizeof(s)-1} +#define S(s) (Str)Ss(s) char *str_to_cstr(Str s, Arena *a); Str str_from_cstr(const char *s); |