From 6ba81213e39875a6a50890de3b212dae8cff897b Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 10 Oct 2023 11:50:55 -0400 Subject: Change comment formatting Signed-off-by: Andrew Opalach --- README.md | 2 +- include/al/list.h | 4 ++-- src/str.c | 4 ++-- 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; -- cgit v1.2.3-101-g0448