mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.0027: still some /* */ comments
Problem: Still some /* */ comments. Solution: Convert to // comments.
This commit is contained in:
parent
85a2002adb
commit
aa2f0ee639
@ -1,16 +1,14 @@
|
|||||||
/* this file contains the actual definitions of */
|
// this file contains the actual definitions of
|
||||||
/* the IIDs and CLSIDs */
|
// the IIDs and CLSIDs
|
||||||
|
|
||||||
/* link this file in with the server and any clients */
|
// link this file in with the server and any clients
|
||||||
|
|
||||||
|
|
||||||
/* File created by MIDL compiler version 3.00.44 */
|
// File created by MIDL compiler version 3.00.44
|
||||||
/* at Sat Jan 03 16:34:55 1998
|
// at Sat Jan 03 16:34:55 1998
|
||||||
*/
|
// Compiler settings for if_ole.idl:
|
||||||
/* Compiler settings for if_ole.idl:
|
// Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
|
||||||
Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
|
// error checks: none
|
||||||
error checks: none
|
|
||||||
*/
|
|
||||||
//@@MIDL_FILE_HEADING( )
|
//@@MIDL_FILE_HEADING( )
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"{
|
extern "C"{
|
||||||
@ -20,8 +18,8 @@ extern "C"{
|
|||||||
# include <w32api.h>
|
# include <w32api.h>
|
||||||
|
|
||||||
# if __W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 10
|
# if __W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 10
|
||||||
/* This define is missing from older MingW versions of w32api, even though
|
// This define is missing from older MingW versions of w32api, even though
|
||||||
* IID is defined. */
|
// IID is defined.
|
||||||
# define __IID_DEFINED__
|
# define __IID_DEFINED__
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
36
src/indent.c
36
src/indent.c
@ -1534,25 +1534,25 @@ ex_retab(exarg_T *eap)
|
|||||||
long len;
|
long len;
|
||||||
long col;
|
long col;
|
||||||
long vcol;
|
long vcol;
|
||||||
long start_col = 0; /* For start of white-space string */
|
long start_col = 0; // For start of white-space string
|
||||||
long start_vcol = 0; /* For start of white-space string */
|
long start_vcol = 0; // For start of white-space string
|
||||||
long old_len;
|
long old_len;
|
||||||
char_u *ptr;
|
char_u *ptr;
|
||||||
char_u *new_line = (char_u *)1; /* init to non-NULL */
|
char_u *new_line = (char_u *)1; // init to non-NULL
|
||||||
int did_undo; /* called u_save for current line */
|
int did_undo; // called u_save for current line
|
||||||
#ifdef FEAT_VARTABS
|
#ifdef FEAT_VARTABS
|
||||||
int *new_vts_array = NULL;
|
int *new_vts_array = NULL;
|
||||||
char_u *new_ts_str; /* string value of tab argument */
|
char_u *new_ts_str; // string value of tab argument
|
||||||
#else
|
#else
|
||||||
int temp;
|
int temp;
|
||||||
int new_ts;
|
int new_ts;
|
||||||
#endif
|
#endif
|
||||||
int save_list;
|
int save_list;
|
||||||
linenr_T first_line = 0; /* first changed line */
|
linenr_T first_line = 0; // first changed line
|
||||||
linenr_T last_line = 0; /* last changed line */
|
linenr_T last_line = 0; // last changed line
|
||||||
|
|
||||||
save_list = curwin->w_p_list;
|
save_list = curwin->w_p_list;
|
||||||
curwin->w_p_list = 0; /* don't want list mode here */
|
curwin->w_p_list = 0; // don't want list mode here
|
||||||
|
|
||||||
#ifdef FEAT_VARTABS
|
#ifdef FEAT_VARTABS
|
||||||
new_ts_str = eap->arg;
|
new_ts_str = eap->arg;
|
||||||
@ -1593,7 +1593,7 @@ ex_retab(exarg_T *eap)
|
|||||||
{
|
{
|
||||||
if (!got_tab && num_spaces == 0)
|
if (!got_tab && num_spaces == 0)
|
||||||
{
|
{
|
||||||
/* First consecutive white-space */
|
// First consecutive white-space
|
||||||
start_vcol = vcol;
|
start_vcol = vcol;
|
||||||
start_col = col;
|
start_col = col;
|
||||||
}
|
}
|
||||||
@ -1606,9 +1606,9 @@ ex_retab(exarg_T *eap)
|
|||||||
{
|
{
|
||||||
if (got_tab || (eap->forceit && num_spaces > 1))
|
if (got_tab || (eap->forceit && num_spaces > 1))
|
||||||
{
|
{
|
||||||
/* Retabulate this string of white-space */
|
// Retabulate this string of white-space
|
||||||
|
|
||||||
/* len is virtual length of white string */
|
// len is virtual length of white string
|
||||||
len = num_spaces = vcol - start_vcol;
|
len = num_spaces = vcol - start_vcol;
|
||||||
num_tabs = 0;
|
num_tabs = 0;
|
||||||
if (!curbuf->b_p_et)
|
if (!curbuf->b_p_et)
|
||||||
@ -1640,12 +1640,12 @@ ex_retab(exarg_T *eap)
|
|||||||
if (u_save((linenr_T)(lnum - 1),
|
if (u_save((linenr_T)(lnum - 1),
|
||||||
(linenr_T)(lnum + 1)) == FAIL)
|
(linenr_T)(lnum + 1)) == FAIL)
|
||||||
{
|
{
|
||||||
new_line = NULL; /* flag out-of-memory */
|
new_line = NULL; // flag out-of-memory
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* len is actual number of white characters used */
|
// len is actual number of white characters used
|
||||||
len = num_spaces + num_tabs;
|
len = num_spaces + num_tabs;
|
||||||
old_len = (long)STRLEN(ptr);
|
old_len = (long)STRLEN(ptr);
|
||||||
new_line = alloc(old_len - col + start_col + len + 1);
|
new_line = alloc(old_len - col + start_col + len + 1);
|
||||||
@ -1677,7 +1677,7 @@ ex_retab(exarg_T *eap)
|
|||||||
else
|
else
|
||||||
++col;
|
++col;
|
||||||
}
|
}
|
||||||
if (new_line == NULL) /* out of memory */
|
if (new_line == NULL) // out of memory
|
||||||
break;
|
break;
|
||||||
line_breakcheck();
|
line_breakcheck();
|
||||||
}
|
}
|
||||||
@ -1690,10 +1690,10 @@ ex_retab(exarg_T *eap)
|
|||||||
if (tabstop_count(curbuf->b_p_vts_array) == 0
|
if (tabstop_count(curbuf->b_p_vts_array) == 0
|
||||||
&& tabstop_count(new_vts_array) == 1
|
&& tabstop_count(new_vts_array) == 1
|
||||||
&& curbuf->b_p_ts == tabstop_first(new_vts_array))
|
&& curbuf->b_p_ts == tabstop_first(new_vts_array))
|
||||||
; /* not changed */
|
; // not changed
|
||||||
else if (tabstop_count(curbuf->b_p_vts_array) > 0
|
else if (tabstop_count(curbuf->b_p_vts_array) > 0
|
||||||
&& tabstop_eq(curbuf->b_p_vts_array, new_vts_array))
|
&& tabstop_eq(curbuf->b_p_vts_array, new_vts_array))
|
||||||
; /* not changed */
|
; // not changed
|
||||||
else
|
else
|
||||||
redraw_curbuf_later(NOT_VALID);
|
redraw_curbuf_later(NOT_VALID);
|
||||||
#else
|
#else
|
||||||
@ -1703,10 +1703,10 @@ ex_retab(exarg_T *eap)
|
|||||||
if (first_line != 0)
|
if (first_line != 0)
|
||||||
changed_lines(first_line, 0, last_line + 1, 0L);
|
changed_lines(first_line, 0, last_line + 1, 0L);
|
||||||
|
|
||||||
curwin->w_p_list = save_list; /* restore 'list' */
|
curwin->w_p_list = save_list; // restore 'list'
|
||||||
|
|
||||||
#ifdef FEAT_VARTABS
|
#ifdef FEAT_VARTABS
|
||||||
if (new_ts_str != NULL) /* set the new tabstop */
|
if (new_ts_str != NULL) // set the new tabstop
|
||||||
{
|
{
|
||||||
// If 'vartabstop' is in use or if the value given to retab has more
|
// If 'vartabstop' is in use or if the value given to retab has more
|
||||||
// than one tabstop then update 'vartabstop'.
|
// than one tabstop then update 'vartabstop'.
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
# define CTRL_X_WANT_IDENT 0x100
|
# define CTRL_X_WANT_IDENT 0x100
|
||||||
|
|
||||||
# define CTRL_X_NORMAL 0 /* CTRL-N CTRL-P completion, default */
|
# define CTRL_X_NORMAL 0 // CTRL-N CTRL-P completion, default
|
||||||
# define CTRL_X_NOT_DEFINED_YET 1
|
# define CTRL_X_NOT_DEFINED_YET 1
|
||||||
# define CTRL_X_SCROLL 2
|
# define CTRL_X_SCROLL 2
|
||||||
# define CTRL_X_WHOLE_LINE 3
|
# define CTRL_X_WHOLE_LINE 3
|
||||||
@ -35,8 +35,8 @@
|
|||||||
# define CTRL_X_FUNCTION 12
|
# define CTRL_X_FUNCTION 12
|
||||||
# define CTRL_X_OMNI 13
|
# define CTRL_X_OMNI 13
|
||||||
# define CTRL_X_SPELL 14
|
# define CTRL_X_SPELL 14
|
||||||
# define CTRL_X_LOCAL_MSG 15 /* only used in "ctrl_x_msgs" */
|
# define CTRL_X_LOCAL_MSG 15 // only used in "ctrl_x_msgs"
|
||||||
# define CTRL_X_EVAL 16 /* for builtin function complete() */
|
# define CTRL_X_EVAL 16 // for builtin function complete()
|
||||||
|
|
||||||
# define CTRL_X_MSG(i) ctrl_x_msgs[(i) & ~CTRL_X_WANT_IDENT]
|
# define CTRL_X_MSG(i) ctrl_x_msgs[(i) & ~CTRL_X_WANT_IDENT]
|
||||||
|
|
||||||
|
@ -35,18 +35,18 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#ifdef USE_FILEEXTD
|
#ifdef USE_FILEEXTD
|
||||||
/* VC 7.1 or earlier doesn't support SAL. */
|
// VC 7.1 or earlier doesn't support SAL.
|
||||||
# if !defined(_MSC_VER) || (_MSC_VER < 1400)
|
# if !defined(_MSC_VER) || (_MSC_VER < 1400)
|
||||||
# define __out
|
# define __out
|
||||||
# define __in
|
# define __in
|
||||||
# define __in_opt
|
# define __in_opt
|
||||||
# endif
|
# endif
|
||||||
/* Win32 FileID API Library:
|
// Win32 FileID API Library:
|
||||||
* http://www.microsoft.com/en-us/download/details.aspx?id=22599
|
// http://www.microsoft.com/en-us/download/details.aspx?id=22599
|
||||||
* Needed for WinXP. */
|
// Needed for WinXP.
|
||||||
# include <fileextd.h>
|
# include <fileextd.h>
|
||||||
#else /* USE_FILEEXTD */
|
#else // USE_FILEEXTD
|
||||||
/* VC 8 or earlier. */
|
// VC 8 or earlier.
|
||||||
# if defined(_MSC_VER) && (_MSC_VER < 1500)
|
# if defined(_MSC_VER) && (_MSC_VER < 1500)
|
||||||
# ifdef ENABLE_STUB_IMPL
|
# ifdef ENABLE_STUB_IMPL
|
||||||
# define STUB_IMPL
|
# define STUB_IMPL
|
||||||
@ -54,7 +54,7 @@
|
|||||||
# error "Win32 FileID API Library is required for VC2005 or earlier."
|
# error "Win32 FileID API Library is required for VC2005 or earlier."
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif /* USE_FILEEXTD */
|
#endif // USE_FILEEXTD
|
||||||
|
|
||||||
|
|
||||||
#include "iscygpty.h"
|
#include "iscygpty.h"
|
||||||
@ -104,7 +104,7 @@ static void setup_fileid_api(void)
|
|||||||
#define is_wprefix(s, prefix) \
|
#define is_wprefix(s, prefix) \
|
||||||
(wcsncmp((s), (prefix), sizeof(prefix) / sizeof(WCHAR) - 1) == 0)
|
(wcsncmp((s), (prefix), sizeof(prefix) / sizeof(WCHAR) - 1) == 0)
|
||||||
|
|
||||||
/* Check if the fd is a cygwin/msys's pty. */
|
// Check if the fd is a cygwin/msys's pty.
|
||||||
int is_cygpty(int fd)
|
int is_cygpty(int fd)
|
||||||
{
|
{
|
||||||
#ifdef STUB_IMPL
|
#ifdef STUB_IMPL
|
||||||
@ -121,7 +121,7 @@ int is_cygpty(int fd)
|
|||||||
if (h == INVALID_HANDLE_VALUE) {
|
if (h == INVALID_HANDLE_VALUE) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Cygwin/msys's pty is a pipe. */
|
// Cygwin/msys's pty is a pipe.
|
||||||
if (GetFileType(h) != FILE_TYPE_PIPE) {
|
if (GetFileType(h) != FILE_TYPE_PIPE) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -129,20 +129,20 @@ int is_cygpty(int fd)
|
|||||||
if (nameinfo == NULL) {
|
if (nameinfo == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Check the name of the pipe:
|
// Check the name of the pipe:
|
||||||
* '\{cygwin,msys}-XXXXXXXXXXXXXXXX-ptyN-{from,to}-master' */
|
// '\{cygwin,msys}-XXXXXXXXXXXXXXXX-ptyN-{from,to}-master'
|
||||||
if (pGetFileInformationByHandleEx(h, FileNameInfo, nameinfo, size)) {
|
if (pGetFileInformationByHandleEx(h, FileNameInfo, nameinfo, size)) {
|
||||||
nameinfo->FileName[nameinfo->FileNameLength / sizeof(WCHAR)] = L'\0';
|
nameinfo->FileName[nameinfo->FileNameLength / sizeof(WCHAR)] = L'\0';
|
||||||
p = nameinfo->FileName;
|
p = nameinfo->FileName;
|
||||||
if (is_wprefix(p, L"\\cygwin-")) { /* Cygwin */
|
if (is_wprefix(p, L"\\cygwin-")) { // Cygwin
|
||||||
p += 8;
|
p += 8;
|
||||||
} else if (is_wprefix(p, L"\\msys-")) { /* MSYS and MSYS2 */
|
} else if (is_wprefix(p, L"\\msys-")) { // MSYS and MSYS2
|
||||||
p += 6;
|
p += 6;
|
||||||
} else {
|
} else {
|
||||||
p = NULL;
|
p = NULL;
|
||||||
}
|
}
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
while (*p && isxdigit(*p)) /* Skip 16-digit hexadecimal. */
|
while (*p && isxdigit(*p)) // Skip 16-digit hexadecimal.
|
||||||
++p;
|
++p;
|
||||||
if (is_wprefix(p, L"-pty")) {
|
if (is_wprefix(p, L"-pty")) {
|
||||||
p += 4;
|
p += 4;
|
||||||
@ -151,7 +151,7 @@ int is_cygpty(int fd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
while (*p && isdigit(*p)) /* Skip pty number. */
|
while (*p && isdigit(*p)) // Skip pty number.
|
||||||
++p;
|
++p;
|
||||||
if (is_wprefix(p, L"-from-master")) {
|
if (is_wprefix(p, L"-from-master")) {
|
||||||
//p += 12;
|
//p += 12;
|
||||||
@ -164,10 +164,10 @@ int is_cygpty(int fd)
|
|||||||
}
|
}
|
||||||
free(nameinfo);
|
free(nameinfo);
|
||||||
return (p != NULL);
|
return (p != NULL);
|
||||||
#endif /* STUB_IMPL */
|
#endif // STUB_IMPL
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if at least one cygwin/msys pty is used. */
|
// Check if at least one cygwin/msys pty is used.
|
||||||
int is_cygpty_used(void)
|
int is_cygpty_used(void)
|
||||||
{
|
{
|
||||||
int fd, ret = 0;
|
int fd, ret = 0;
|
||||||
@ -178,6 +178,6 @@ int is_cygpty_used(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
#endif // _WIN32
|
||||||
|
|
||||||
/* vim: set ts=4 sw=4: */
|
// vim: set ts=4 sw=4:
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "vim.h"
|
#include "vim.h"
|
||||||
|
|
||||||
#ifdef AMIGA
|
#ifdef AMIGA
|
||||||
# include <time.h> /* for time() */
|
# include <time.h> // for time()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -86,7 +86,7 @@ static char *(features[]) =
|
|||||||
#else
|
#else
|
||||||
"-acl",
|
"-acl",
|
||||||
#endif
|
#endif
|
||||||
#ifdef AMIGA /* only for Amiga systems */
|
#ifdef AMIGA // only for Amiga systems
|
||||||
# ifdef FEAT_ARP
|
# ifdef FEAT_ARP
|
||||||
"+ARP",
|
"+ARP",
|
||||||
# else
|
# else
|
||||||
@ -269,7 +269,7 @@ static char *(features[]) =
|
|||||||
#else
|
#else
|
||||||
"-footer",
|
"-footer",
|
||||||
#endif
|
#endif
|
||||||
/* only interesting on Unix systems */
|
// only interesting on Unix systems
|
||||||
#if !defined(USE_SYSTEM) && defined(UNIX)
|
#if !defined(USE_SYSTEM) && defined(UNIX)
|
||||||
"+fork()",
|
"+fork()",
|
||||||
#endif
|
#endif
|
||||||
@ -571,7 +571,7 @@ static char *(features[]) =
|
|||||||
#else
|
#else
|
||||||
"-syntax",
|
"-syntax",
|
||||||
#endif
|
#endif
|
||||||
/* only interesting on Unix systems */
|
// only interesting on Unix systems
|
||||||
#if defined(USE_SYSTEM) && defined(UNIX)
|
#if defined(USE_SYSTEM) && defined(UNIX)
|
||||||
"+system()",
|
"+system()",
|
||||||
#endif
|
#endif
|
||||||
@ -602,7 +602,7 @@ static char *(features[]) =
|
|||||||
"-terminal",
|
"-terminal",
|
||||||
#endif
|
#endif
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
/* only Unix can have terminfo instead of termcap */
|
// only Unix can have terminfo instead of termcap
|
||||||
# ifdef TERMINFO
|
# ifdef TERMINFO
|
||||||
"+terminfo",
|
"+terminfo",
|
||||||
# else
|
# else
|
||||||
@ -625,7 +625,7 @@ static char *(features[]) =
|
|||||||
"-textprop",
|
"-textprop",
|
||||||
#endif
|
#endif
|
||||||
#if !defined(UNIX)
|
#if !defined(UNIX)
|
||||||
/* unix always includes termcap support */
|
// unix always includes termcap support
|
||||||
# ifdef HAVE_TGETENT
|
# ifdef HAVE_TGETENT
|
||||||
"+tgetent",
|
"+tgetent",
|
||||||
# else
|
# else
|
||||||
@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
27,
|
||||||
/**/
|
/**/
|
||||||
26,
|
26,
|
||||||
/**/
|
/**/
|
||||||
@ -903,8 +905,8 @@ list_in_columns(char_u **items, int size, int current)
|
|||||||
int use_highlight = (items == (char_u **)features);
|
int use_highlight = (items == (char_u **)features);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find the length of the longest item, use that + 1 as the column
|
// Find the length of the longest item, use that + 1 as the column
|
||||||
* width. */
|
// width.
|
||||||
for (i = 0; size < 0 ? items[i] != NULL : i < size; ++i)
|
for (i = 0; size < 0 ? items[i] != NULL : i < size; ++i)
|
||||||
{
|
{
|
||||||
int l = (int)vim_strsize(items[i]) + (i == current ? 2 : 0);
|
int l = (int)vim_strsize(items[i]) + (i == current ? 2 : 0);
|
||||||
@ -1035,13 +1037,13 @@ list_version(void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Print the list of patch numbers if there is at least one. */
|
// Print the list of patch numbers if there is at least one.
|
||||||
/* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */
|
// Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45"
|
||||||
if (included_patches[0] != 0)
|
if (included_patches[0] != 0)
|
||||||
{
|
{
|
||||||
msg_puts(_("\nIncluded patches: "));
|
msg_puts(_("\nIncluded patches: "));
|
||||||
first = -1;
|
first = -1;
|
||||||
/* find last one */
|
// find last one
|
||||||
for (i = 0; included_patches[i] != 0; ++i)
|
for (i = 0; included_patches[i] != 0; ++i)
|
||||||
;
|
;
|
||||||
while (--i >= 0)
|
while (--i >= 0)
|
||||||
@ -1063,7 +1065,7 @@ list_version(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print the list of extra patch descriptions if there is at least one. */
|
// Print the list of extra patch descriptions if there is at least one.
|
||||||
if (extra_patches[0] != NULL)
|
if (extra_patches[0] != NULL)
|
||||||
{
|
{
|
||||||
msg_puts(_("\nExtra patches: "));
|
msg_puts(_("\nExtra patches: "));
|
||||||
@ -1281,7 +1283,7 @@ maybe_intro_message(void)
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
intro_message(
|
intro_message(
|
||||||
int colon) /* TRUE for ":intro" */
|
int colon) // TRUE for ":intro"
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int row;
|
int row;
|
||||||
@ -1337,23 +1339,23 @@ intro_message(
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* blanklines = screen height - # message lines */
|
// blanklines = screen height - # message lines
|
||||||
blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1);
|
blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1);
|
||||||
if (!p_cp)
|
if (!p_cp)
|
||||||
blanklines += 4; /* add 4 for not showing "Vi compatible" message */
|
blanklines += 4; // add 4 for not showing "Vi compatible" message
|
||||||
|
|
||||||
/* Don't overwrite a statusline. Depends on 'cmdheight'. */
|
// Don't overwrite a statusline. Depends on 'cmdheight'.
|
||||||
if (p_ls > 1)
|
if (p_ls > 1)
|
||||||
blanklines -= Rows - topframe->fr_height;
|
blanklines -= Rows - topframe->fr_height;
|
||||||
if (blanklines < 0)
|
if (blanklines < 0)
|
||||||
blanklines = 0;
|
blanklines = 0;
|
||||||
|
|
||||||
/* Show the sponsor and register message one out of four times, the Uganda
|
// Show the sponsor and register message one out of four times, the Uganda
|
||||||
* message two out of four times. */
|
// message two out of four times.
|
||||||
sponsor = (int)time(NULL);
|
sponsor = (int)time(NULL);
|
||||||
sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0);
|
sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0);
|
||||||
|
|
||||||
/* start displaying the message lines after half of the blank lines */
|
// start displaying the message lines after half of the blank lines
|
||||||
row = blanklines / 2;
|
row = blanklines / 2;
|
||||||
if ((row >= 2 && Columns >= 50) || colon)
|
if ((row >= 2 && Columns >= 50) || colon)
|
||||||
{
|
{
|
||||||
@ -1389,7 +1391,7 @@ intro_message(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make the wait-return message appear just below the text. */
|
// Make the wait-return message appear just below the text.
|
||||||
if (colon)
|
if (colon)
|
||||||
msg_row = row;
|
msg_row = row;
|
||||||
}
|
}
|
||||||
@ -1419,14 +1421,14 @@ do_intro_line(
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Center the message horizontally. */
|
// Center the message horizontally.
|
||||||
col = vim_strsize(mesg);
|
col = vim_strsize(mesg);
|
||||||
if (add_version)
|
if (add_version)
|
||||||
{
|
{
|
||||||
STRCPY(vers, mediumVersion);
|
STRCPY(vers, mediumVersion);
|
||||||
if (highest_patch())
|
if (highest_patch())
|
||||||
{
|
{
|
||||||
/* Check for 9.9x or 9.9xx, alpha/beta version */
|
// Check for 9.9x or 9.9xx, alpha/beta version
|
||||||
if (isalpha((int)vers[3]))
|
if (isalpha((int)vers[3]))
|
||||||
{
|
{
|
||||||
int len = (isalpha((int)vers[4])) ? 5 : 4;
|
int len = (isalpha((int)vers[4])) ? 5 : 4;
|
||||||
@ -1442,7 +1444,7 @@ do_intro_line(
|
|||||||
if (col < 0)
|
if (col < 0)
|
||||||
col = 0;
|
col = 0;
|
||||||
|
|
||||||
/* Split up in parts to highlight <> items differently. */
|
// Split up in parts to highlight <> items differently.
|
||||||
for (p = mesg; *p != NUL; p += l)
|
for (p = mesg; *p != NUL; p += l)
|
||||||
{
|
{
|
||||||
clen = 0;
|
clen = 0;
|
||||||
@ -1461,7 +1463,7 @@ do_intro_line(
|
|||||||
col += clen;
|
col += clen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add the version number to the version line. */
|
// Add the version number to the version line.
|
||||||
if (add_version)
|
if (add_version)
|
||||||
screen_puts(vers, row, col, 0);
|
screen_puts(vers, row, col, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user