return NULL;
}
-# ifdef FEAT_EVAL
+#ifdef FEAT_EVAL
/*
* Function given to ExpandGeneric() to obtain the possible arguments of the
* ":breakadd {expr, file, func, here}" command.
char *directories[] = {"syntax", "indent", "ftplugin", NULL};
return ExpandRTDir(pat, 0, numMatches, matches, directories);
}
-# if defined(FEAT_EVAL)
+#if defined(FEAT_EVAL)
if (xp->xp_context == EXPAND_USER_LIST)
return ExpandUserList(xp, matches, numMatches);
-# endif
+#endif
if (xp->xp_context == EXPAND_PACKADD)
return ExpandPackAddDir(pat, numMatches, matches);
ret = ExpandSettings(xp, ®match, pat, numMatches, matches, fuzzy);
else if (xp->xp_context == EXPAND_MAPPINGS)
ret = ExpandMappings(pat, ®match, numMatches, matches);
-# if defined(FEAT_EVAL)
+#if defined(FEAT_EVAL)
else if (xp->xp_context == EXPAND_USER_DEFINED)
ret = ExpandUserDefined(pat, xp, ®match, matches, numMatches);
-# endif
+#endif
else
ret = ExpandOther(pat, xp, ®match, matches, numMatches);
else
((char_u **)ga.ga_data)[ga.ga_len] = str;
-# ifdef FEAT_MENU
+#ifdef FEAT_MENU
if (func == get_menu_names)
{
// test for separator added by get_menu_names()
if (*str == '\001')
*str = '.';
}
-# endif
+#endif
++ga.ga_len;
}
hash_init(&found_ht);
for (s = path; ; s = e)
{
-# if defined(MSWIN)
+#if defined(MSWIN)
e = vim_strchr(s, ';');
-# else
+#else
e = vim_strchr(s, ':');
-# endif
+#endif
if (e == NULL)
e = s + STRLEN(s);
return OK;
}
-# if defined(FEAT_EVAL)
+#if defined(FEAT_EVAL)
/*
* Call "user_expand_func()" to invoke a user defined Vim script function and
* return the result (either a string, a List or NULL).
*numMatches = ga.ga_len;
return OK;
}
-# endif
+#endif
/*
* Expand "file" for all comma-separated directories in "path".
copy_option_part(&path, buf, MAXPATHL, ",");
if (STRLEN(buf) + STRLEN(file) + 2 < MAXPATHL)
{
-# if defined(MSWIN)
+#if defined(MSWIN)
// Using the platform's path separator (\) makes vim incorrectly
// treat it as an escape character, use '/' instead.
if (*buf != NUL && !after_pathsep(buf, buf + STRLEN(buf)))
STRCAT(buf, "/");
-# else
+#else
add_pathsep(buf);
-# endif
+#endif
STRCAT(buf, file);
if (ExpandFromContext(&xpc, buf, &p, &num_p,
WILD_SILENT|expand_options) != FAIL && num_p > 0)
if (has_mbyte)
j -= (*mb_head_off)(cclp->cmdbuff, cclp->cmdbuff + j);
if (vim_ispathsep(cclp->cmdbuff[j])
-# ifdef BACKSLASH_IN_FILENAME
+#ifdef BACKSLASH_IN_FILENAME
&& vim_strchr((char_u *)" *?[{`$%#",
cclp->cmdbuff[j + 1]) == NULL
-# endif
+#endif
)
{
if (found)
g_xMouse = pmer->dwMousePosition.X;
g_yMouse = pmer->dwMousePosition.Y;
-#ifdef FEAT_PROP_POPUP
+# ifdef FEAT_PROP_POPUP
int lcol = g_xMouse;
int lrow = g_yMouse;
win_T *wp = mouse_find_win(&lrow, &lcol, FIND_POPUP);
out_flush();
return;
}
-#endif
+# endif
mouse_col = g_xMouse;
mouse_row = g_yMouse;
fill.Char.AsciiChar = ' ';
if (!(vtp_working
-#ifdef FEAT_TERMGUICOLORS
+# ifdef FEAT_TERMGUICOLORS
&& (p_tgc || t_colors >= 256)
-#endif
+# endif
))
fill.Attributes = g_attrCurrent;
else
return;
if (!(vtp_working
-#ifdef FEAT_TERMGUICOLORS
+# ifdef FEAT_TERMGUICOLORS
&& (p_tgc || t_colors >= 256)
-#endif
+# endif
))
{
// There are reports of double-width characters not displayed
}
if (!(vtp_working
-#ifdef FEAT_TERMGUICOLORS
+# ifdef FEAT_TERMGUICOLORS
&& (p_tgc || t_colors >= 256)
-#endif
+# endif
))
{
FillConsoleOutputAttribute(g_hConOut, g_attrCurrent, cells,
// Cursor under VTP is always in the correct position, no need to reset.
if (!(vtp_working
-#ifdef FEAT_TERMGUICOLORS
+# ifdef FEAT_TERMGUICOLORS
&& (p_tgc || t_colors >= 256)
-#endif
+# endif
))
gotoxy(g_coord.X + 1, g_coord.Y + 1);