refactor(macroman): get rid of MB_COPY_CHAR macro

clean up docs for MB_PTR_ADV and MB_PTR_BACK
This commit is contained in:
Björn Linse
2021-11-14 13:39:14 +01:00
parent 54ff21a153
commit 1450a6f753
7 changed files with 15 additions and 21 deletions

View File

@@ -4969,11 +4969,11 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
FALLTHROUGH;
default:
MB_COPY_CHAR(p, name);
mb_copy_char((const char_u **)&p, &name);
break;
}
} else {
MB_COPY_CHAR(p, name);
mb_copy_char((const char_u **)&p, &name);
}
}
*name = NUL;
@@ -5033,7 +5033,7 @@ static int get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate)
}
++p;
}
MB_COPY_CHAR(p, str);
mb_copy_char((const char_u **)&p, &str);
}
*str = NUL;
*arg = p + 1;