summaryrefslogtreecommitdiff
path: root/str.h
diff options
context:
space:
mode:
authorwrmr2025-10-08 19:29:10 -0400
committerwrmr2025-10-08 19:29:10 -0400
commite9d374f44300f67d4f3974c043b0c0588bfdb869 (patch)
tree3f5da92ba0acd9eee3e43d51ceaf2dcee44d3ed8 /str.h
parent46a9842938333a58a051d031e724f35f5caf56de (diff)
changes to make GCC shut up
Diffstat (limited to 'str.h')
-rw-r--r--str.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/str.h b/str.h
index b10bc64..83f0cb4 100644
--- a/str.h
+++ b/str.h
@@ -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);