Skip to content
Myr

rename ‘clen’ -> ‘c32len’, to make codespell happy

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 71a44ee · Browse files · 2 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−7 removed

  • other:+7 added−7 removed

2 files+7 added−7 removed

modified:application.c+3 added-3 removed
109 unmodified lines
110bool111application_execute(const struct application *app, const struct prompt *prompt, const char *launch_prefix)112{113 const char32_t *ptext = prompt_text(prompt);114 const size_t clen = c32tombs(NULL, ptext, 0);115 char cprompt[clen + 1];116 c32tombs(cprompt, ptext, clen + 1);114 const size_t c32len = c32tombs(NULL, ptext, 0);115 char cprompt[c32len + 1];116 c32tombs(cprompt, ptext, c32len + 1);117118 const char *execute = app != NULL ? app->exec : cprompt;119 const char *path = app != NULL ? app->path : NULL;120
211 unmodified lines
modified:main.c+4 added-4 removed
171 unmodified lines
172 char count_as_str[11];173 sprintf(count_as_str, "%u", apps->v[i].count);174 const size_t count_len = strlen(count_as_str);175176 size_t clen = c32tombs(NULL, apps->v[i].title, 0);177 char ctitle[clen + 1];178 c32tombs(ctitle, apps->v[i].title, clen + 1);176 size_t c32len = c32tombs(NULL, apps->v[i].title, 0);177 char ctitle[c32len + 1];178 c32tombs(ctitle, apps->v[i].title, c32len + 1);179180 if (write(fd, ctitle, clen) != clen ||180 if (write(fd, ctitle, c32len) != c32len ||181 write(fd, "|", 1) != 1 ||182 write(fd, count_as_str, count_len) != count_len ||183 write(fd, "\n", 1) != 1)184 {
1088 unmodified lines