diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2025-09-23 09:01:55 +0200 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2025-09-23 09:01:55 +0200 |
| commit | 144eb7bfbcd76e2ae85bad0f7a333622449d9966 (patch) | |
| tree | 2f53b7d285c27a81b150fb29b2bc6383a5145289 /format.c | |
| parent | 8e58a6b8a76c31914ba57f8ad8be018ba872a250 (diff) | |
| parent | d23ac2b9f5e9b17ecf675eac4cd6ad22dfb9ccad (diff) | |
Merge pull request 'making sure that global data is immutable' (#477) from byte/snac2:fix/immutable into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/477
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ #include "snac.h" /* emoticons, people laughing and such */ -const char *smileys[] = { +const char * const smileys[] = { ":-)", "🙂", ":-D", "😀", "X-D", "😆", @@ -49,7 +49,7 @@ xs_dict *emojis(void) if (mtime(fn) == 0) { /* file does not exist; create it with the defaults */ xs *d = xs_dict_new(); - const char **emo = smileys; + const char * const *emo = smileys; while (*emo) { d = xs_dict_append(d, emo[0], emo[1]); @@ -443,7 +443,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag } -const char *valid_tags[] = { +const char * const valid_tags[] = { "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", "h2","h3", //anzu |