mirror of
https://github.com/neovim/neovim.git
synced 2025-12-05 06:02:41 +00:00
refactor: convert macros to all-caps (#17895)
Closes https://github.com/neovim/neovim/issues/6297
This commit is contained in:
@@ -2720,7 +2720,7 @@ void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx)
|
||||
|
||||
if (cmdidx == CMD_let || cmdidx == CMD_const) {
|
||||
xp->xp_context = EXPAND_USER_VARS;
|
||||
if (vim_strpbrk(arg, (char_u *)"\"'+-*/%.=!?~|&$([<>,#") == NULL) {
|
||||
if (strpbrk((char *)arg, "\"'+-*/%.=!?~|&$([<>,#") == NULL) {
|
||||
// ":let var1 var2 ...": find last space.
|
||||
for (p = arg + STRLEN(arg); p >= arg;) {
|
||||
xp->xp_pattern = p;
|
||||
@@ -2735,8 +2735,7 @@ void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx)
|
||||
xp->xp_context = cmdidx == CMD_call ? EXPAND_FUNCTIONS
|
||||
: EXPAND_EXPRESSION;
|
||||
}
|
||||
while ((xp->xp_pattern = vim_strpbrk(arg,
|
||||
(char_u *)"\"'+-*/%.=!?~|&$([<>,#")) != NULL) {
|
||||
while ((xp->xp_pattern = (char_u *)strpbrk((char *)arg, "\"'+-*/%.=!?~|&$([<>,#")) != NULL) {
|
||||
c = *xp->xp_pattern;
|
||||
if (c == '&') {
|
||||
c = xp->xp_pattern[1];
|
||||
@@ -10202,7 +10201,7 @@ repeat:
|
||||
|
||||
// Do not call shorten_fname() here since it removes the prefix
|
||||
// even though the path does not have a prefix.
|
||||
if (fnamencmp(p, dirname, namelen) == 0) {
|
||||
if (FNAMENCMP(p, dirname, namelen) == 0) {
|
||||
p += namelen;
|
||||
if (vim_ispathsep(*p)) {
|
||||
while (*p && vim_ispathsep(*p)) {
|
||||
|
||||
Reference in New Issue
Block a user