ref: 29f18f0920e58066becfdbf810b080a4c97d8d2b
parent: f390a83309b792c5ecc35e64e5b6b9d8384a75ab
author: cancel <cancel@cancel.fm>
date: Tue Jan 7 03:54:41 EST 2020
Cleanup
--- a/thirdparty/gbstring.c
+++ b/thirdparty/gbstring.c
@@ -27,7 +27,7 @@
str = gbs_cpy(str, "Hello");
other_str = gbs_cpy(other_str, "Pizza");
- if (gbs_streq(str, other_str))
+ if (gbs_equal(str, other_str))
printf("Not called\n");
else
printf("Called\n");
@@ -173,7 +173,7 @@
return sizeof(gbStringHeader) + cap;
}
-bool gbs_streq(gbs const lhs, gbs const rhs) {
+bool gbs_equal(gbs const lhs, gbs const rhs) {
size_t lhs_len, rhs_len, i;
lhs_len = gbs_len(lhs);
rhs_len = gbs_len(rhs);
--- a/thirdparty/gbstring.h
+++ b/thirdparty/gbstring.h
@@ -27,7 +27,7 @@
gbs gbs_makeroomfor(gbs str, size_t add_len);
-bool gbs_streq(gbs const lhs, gbs const rhs);
+bool gbs_equal(gbs const lhs, gbs const rhs);
gbs gbs_trim(gbs str, char const *cut_set);