0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.2392: using old C style comments

Problem:    Using old C style comments.
Solution:   Use // comments where appropriate.
This commit is contained in:
Bram Moolenaar
2019-12-05 20:12:41 +01:00
parent c95e8d6490
commit 6e0ce171e1
6 changed files with 1727 additions and 1748 deletions

View File

@@ -30,7 +30,7 @@
#include "vim.h" #include "vim.h"
FILE *nb_debug = NULL; FILE *nb_debug = NULL;
u_int nb_dlevel = 0; /* nb_debug verbosity level */ u_int nb_dlevel = 0; // nb_debug verbosity level
void nbdb(char *, ...); void nbdb(char *, ...);
@@ -46,19 +46,19 @@ static int errorHandler(Display *, XErrorEvent *);
* from a background process this is the only way to debug * from a background process this is the only way to debug
* startup problems. * startup problems.
*/ */
void
void nbdebug_wait( nbdebug_wait(
u_int wait_flags, /* tells what to do */ u_int wait_flags, // tells what to do
char *wait_var, /* wait environment variable */ char *wait_var, // wait environment variable
u_int wait_secs) /* how many seconds to wait */ u_int wait_secs) // how many seconds to wait
{ {
init_homedir(); /* not inited yet */ init_homedir(); // not inited yet
#ifdef USE_WDDUMP #ifdef USE_WDDUMP
WDDump(0, 0, 0); WDDump(0, 0, 0);
#endif #endif
/* for debugging purposes only */ // for debugging purposes only
if (wait_flags & WT_ENV && wait_var && getenv(wait_var) != NULL) { if (wait_flags & WT_ENV && wait_var && getenv(wait_var) != NULL) {
sleep(atoi(getenv(wait_var))); sleep(atoi(getenv(wait_var)));
} else if (wait_flags & WT_WAIT && lookup("~/.gvimwait")) { } else if (wait_flags & WT_WAIT && lookup("~/.gvimwait")) {
@@ -69,16 +69,15 @@ void nbdebug_wait(
; ;
} }
} }
} /* end nbdebug_wait */ }
void
void
nbdebug_log_init( nbdebug_log_init(
char *log_var, /* env var with log file */ char *log_var, // env var with log file
char *level_var) /* env var with nb_debug level */ char *level_var) // env var with nb_debug level
{ {
char *file; /* possible nb_debug output file */ char *file; // possible nb_debug output file
char *cp; /* nb_dlevel pointer */ char *cp; // nb_dlevel pointer
if (log_var && (file = getenv(log_var)) != NULL) if (log_var && (file = getenv(log_var)) != NULL)
{ {
@@ -90,20 +89,17 @@ nbdebug_log_init(
if (level_var && (cp = getenv(level_var)) != NULL) { if (level_var && (cp = getenv(level_var)) != NULL) {
nb_dlevel = strtoul(cp, NULL, 0); nb_dlevel = strtoul(cp, NULL, 0);
} else { } else {
nb_dlevel = NB_TRACE; /* default level */ nb_dlevel = NB_TRACE; // default level
} }
#ifdef USE_NB_ERRORHANDLER #ifdef USE_NB_ERRORHANDLER
XSetErrorHandler(errorHandler); XSetErrorHandler(errorHandler);
#endif #endif
} }
} /* end nbdebug_log_init */ }
void
void nbdbg(char *fmt, ...)
nbdbg(
char *fmt,
...)
{ {
va_list ap; va_list ap;
@@ -114,12 +110,10 @@ nbdbg(
fflush(nb_debug); fflush(nb_debug);
} }
} /* end nbdbg */ }
static int
static int lookup(char *file)
lookup(
char *file)
{ {
char buf[BUFSIZ]; char buf[BUFSIZ];
@@ -131,10 +125,10 @@ lookup(
(access(buf, 0) == 0); (access(buf, 0) == 0);
#endif #endif
} /* end lookup */ }
#ifdef USE_NB_ERRORHANDLER #ifdef USE_NB_ERRORHANDLER
static int static int
errorHandler( errorHandler(
Display *dpy, Display *dpy,
XErrorEvent *err) XErrorEvent *err)
@@ -160,4 +154,4 @@ errorHandler(
#endif #endif
#endif /* NBDEBUG */ #endif // NBDEBUG

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

709
src/ops.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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 */
/**/
2392,
/**/ /**/
2391, 2391,
/**/ /**/