summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2023-10-10 11:50:55 -0400
committerAndrew Opalach <andrew@akon.city> 2023-10-10 11:50:55 -0400
commit6ba81213e39875a6a50890de3b212dae8cff897b (patch)
treeec262982ee4a4ccf396be4fdb76cda255912a9af
parentdab8b0f3d8f0df6641af11d20c53a3bd5593180a (diff)
downloadlibalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.tar.gz
libalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.tar.bz2
libalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.zip
Change comment formatting
Signed-off-by: Andrew Opalach <andrew@akon.city>
-rw-r--r--README.md2
-rw-r--r--include/al/list.h4
-rw-r--r--src/str.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 0d081b9..1f1934b 100644
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-# libalabaster: C Foundation Library
+## libalabaster: C Foundation Library
diff --git a/include/al/list.h b/include/al/list.h
index 41b1b2b..f6a1181 100644
--- a/include/al/list.h
+++ b/include/al/list.h
@@ -109,11 +109,11 @@
#define al_list_nth(name, list, n) list_nth_##name(list, n)
#define al_list_last(name, list) list_last_##name(list)
-// If `list` is `NULL`, a new list is created.
+// If list is NULL, a new list is created.
#define al_list_append(name, list, value) list_append_##name(list, value)
#define al_list_prepend(name, list, value) list_prepend_##name(list, value)
-// If `sibiling->next` is `NULL` (or just `sibiling` for before) append the value to the end of the list.
+// If sibiling->next is NULL (or just sibiling for before) append the value to the end of the list.
#define al_list_insert_after(name, list, sibling, value) list_insert_after_##name(list, sibling, value)
#define al_list_insert_before(name, list, sibling, value) list_insert_before_##name(list, sibling, value)
diff --git a/src/str.c b/src/str.c
index 2bb7fa9..e8e417d 100644
--- a/src/str.c
+++ b/src/str.c
@@ -67,7 +67,7 @@ bool al_str_get_line(str *buffer, char sep, str *line)
if (line->data == NULL) {
*line = *buffer;
} else if ((bytes = (u32)((line->data += line->len + 1) - buffer->data)) >= buffer->len) {
- // Move to the start of the assumed next line. If `bytes >= buffer->len`,
+ // Move to the start of the assumed next line. If bytes >= buffer->len,
// there is no next line.
return false;
}
@@ -77,7 +77,7 @@ bool al_str_get_line(str *buffer, char sep, str *line)
char *nl = (char *)al_memchr(line->data, sep, bytes);
- // If `!nl`, move to the end of the buffer.
+ // If !nl, move to the end of the buffer.
line->len = !nl ? bytes : (u32)(nl - line->data);
return true;