mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 05:46:12 +00:00
refactor: uncrustify
Notable changes: replace all infinite loops to `while(true)` and remove `int` from `unsigned int`.
This commit is contained in:
@@ -220,7 +220,7 @@ static list_T *heredoc_get(exarg_T *eap, char *cmd)
|
||||
|
||||
char *theline = NULL;
|
||||
list_T *l = tv_list_alloc(0);
|
||||
for (;;) {
|
||||
while (true) {
|
||||
int mi = 0;
|
||||
int ti = 0;
|
||||
|
||||
@@ -502,7 +502,7 @@ const char *skip_var_list(const char *arg, int *var_count, int *semicolon)
|
||||
const char *s;
|
||||
// "[var, var]": find the matching ']'.
|
||||
const char *p = arg;
|
||||
for (;;) {
|
||||
while (true) {
|
||||
p = skipwhite(p + 1); // skip whites after '[', ';' or ','
|
||||
s = skip_var_one(p);
|
||||
if (s == p) {
|
||||
@@ -1012,7 +1012,7 @@ static int do_unlet_var(lval_T *lp, char *name_end, exarg_T *eap, int deep FUNC_
|
||||
// Delete a range of List items.
|
||||
listitem_T *const first_li = lp->ll_li;
|
||||
listitem_T *last_li = first_li;
|
||||
for (;;) {
|
||||
while (true) {
|
||||
listitem_T *const li = TV_LIST_ITEM_NEXT(lp->ll_list, lp->ll_li);
|
||||
if (value_check_lock(TV_LIST_ITEM_TV(lp->ll_li)->v_lock,
|
||||
lp->ll_name,
|
||||
|
Reference in New Issue
Block a user