|
Karsten Hopp |
fdbc74 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
fdbc74 |
Subject: Patch 7.2.115
|
|
Karsten Hopp |
fdbc74 |
Fcc: outbox
|
|
Karsten Hopp |
fdbc74 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fdbc74 |
Mime-Version: 1.0
|
|
Karsten Hopp |
fdbc74 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
fdbc74 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fdbc74 |
------------
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
Patch 7.2.115
|
|
Karsten Hopp |
fdbc74 |
Problem: Some debugging code is never used.
|
|
Karsten Hopp |
fdbc74 |
Solution: Remove nbtrace() and nbprt(). (Dominique Pelle)
|
|
Karsten Hopp |
fdbc74 |
Files: src/nbdebug.c, src/nbdebug.h
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
*** ../vim-7.2.114/src/nbdebug.c Tue Jun 24 23:54:30 2008
|
|
Karsten Hopp |
fdbc74 |
--- src/nbdebug.c Tue Feb 17 03:26:07 2009
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 33,39 ****
|
|
Karsten Hopp |
fdbc74 |
u_int nb_dlevel = 0; /* nb_debug verbosity level */
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
void nbdb(char *, ...);
|
|
Karsten Hopp |
fdbc74 |
- void nbtrace(char *, ...);
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
static int lookup(char *);
|
|
Karsten Hopp |
fdbc74 |
#ifdef USE_NB_ERRORHANDLER
|
|
Karsten Hopp |
fdbc74 |
--- 33,38 ----
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 100,124 ****
|
|
Karsten Hopp |
fdbc74 |
} /* end nbdebug_log_init */
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- void
|
|
Karsten Hopp |
fdbc74 |
- nbtrace(
|
|
Karsten Hopp |
fdbc74 |
- char *fmt,
|
|
Karsten Hopp |
fdbc74 |
- ...)
|
|
Karsten Hopp |
fdbc74 |
- {
|
|
Karsten Hopp |
fdbc74 |
- va_list ap;
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- if (nb_debug!= NULL && (nb_dlevel & (NB_TRACE | NB_TRACE_VERBOSE))) {
|
|
Karsten Hopp |
fdbc74 |
- va_start(ap, fmt);
|
|
Karsten Hopp |
fdbc74 |
- vfprintf(nb_debug, fmt, ap);
|
|
Karsten Hopp |
fdbc74 |
- va_end(ap);
|
|
Karsten Hopp |
fdbc74 |
- fflush(nb_debug);
|
|
Karsten Hopp |
fdbc74 |
- }
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- } /* end nbtrace */
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
void
|
|
Karsten Hopp |
fdbc74 |
nbdbg(
|
|
Karsten Hopp |
fdbc74 |
char *fmt,
|
|
Karsten Hopp |
fdbc74 |
--- 99,104 ----
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 136,158 ****
|
|
Karsten Hopp |
fdbc74 |
} /* end nbdbg */
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
- void
|
|
Karsten Hopp |
fdbc74 |
- nbprt(
|
|
Karsten Hopp |
fdbc74 |
- char *fmt,
|
|
Karsten Hopp |
fdbc74 |
- ...)
|
|
Karsten Hopp |
fdbc74 |
- {
|
|
Karsten Hopp |
fdbc74 |
- va_list ap;
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- if (nb_debug != NULL && nb_dlevel & NB_PRINT) {
|
|
Karsten Hopp |
fdbc74 |
- va_start(ap, fmt);
|
|
Karsten Hopp |
fdbc74 |
- vfprintf(nb_debug, fmt, ap);
|
|
Karsten Hopp |
fdbc74 |
- va_end(ap);
|
|
Karsten Hopp |
fdbc74 |
- fflush(nb_debug);
|
|
Karsten Hopp |
fdbc74 |
- }
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- } /* end nbprt */
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
static int
|
|
Karsten Hopp |
fdbc74 |
lookup(
|
|
Karsten Hopp |
fdbc74 |
char *file)
|
|
Karsten Hopp |
fdbc74 |
--- 116,121 ----
|
|
Karsten Hopp |
fdbc74 |
*** ../vim-7.2.114/src/nbdebug.h Wed Jun 25 00:47:21 2008
|
|
Karsten Hopp |
fdbc74 |
--- src/nbdebug.h Tue Feb 17 03:26:38 2009
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 43,50 ****
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
void nbdbg(char *, ...);
|
|
Karsten Hopp |
fdbc74 |
- void nbprt(char *, ...);
|
|
Karsten Hopp |
fdbc74 |
- void nbtrace(char *, ...);
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
void nbdebug_wait __ARGS((u_int wait_flags, char *wait_var, u_int wait_secs));
|
|
Karsten Hopp |
fdbc74 |
void nbdebug_log_init __ARGS((char *log_var, char *level_var));
|
|
Karsten Hopp |
fdbc74 |
--- 43,48 ----
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 70,88 ****
|
|
Karsten Hopp |
fdbc74 |
{
|
|
Karsten Hopp |
fdbc74 |
}
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
- void
|
|
Karsten Hopp |
fdbc74 |
- nbprt(
|
|
Karsten Hopp |
fdbc74 |
- char *fmt,
|
|
Karsten Hopp |
fdbc74 |
- ...)
|
|
Karsten Hopp |
fdbc74 |
- {
|
|
Karsten Hopp |
fdbc74 |
- }
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
- void
|
|
Karsten Hopp |
fdbc74 |
- nbtrace(
|
|
Karsten Hopp |
fdbc74 |
- char *fmt,
|
|
Karsten Hopp |
fdbc74 |
- ...)
|
|
Karsten Hopp |
fdbc74 |
- {
|
|
Karsten Hopp |
fdbc74 |
- }
|
|
Karsten Hopp |
fdbc74 |
-
|
|
Karsten Hopp |
fdbc74 |
#endif /* NBDEBUG */
|
|
Karsten Hopp |
fdbc74 |
#endif /* NBDEBUG_H */
|
|
Karsten Hopp |
fdbc74 |
--- 68,72 ----
|
|
Karsten Hopp |
fdbc74 |
*** ../vim-7.2.114/src/version.c Sat Feb 21 22:12:43 2009
|
|
Karsten Hopp |
fdbc74 |
--- src/version.c Sat Feb 21 22:28:21 2009
|
|
Karsten Hopp |
fdbc74 |
***************
|
|
Karsten Hopp |
fdbc74 |
*** 678,679 ****
|
|
Karsten Hopp |
fdbc74 |
--- 678,681 ----
|
|
Karsten Hopp |
fdbc74 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fdbc74 |
+ /**/
|
|
Karsten Hopp |
fdbc74 |
+ 115,
|
|
Karsten Hopp |
fdbc74 |
/**/
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
--
|
|
Karsten Hopp |
fdbc74 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
fdbc74 |
105. When someone asks you for your address, you tell them your URL.
|
|
Karsten Hopp |
fdbc74 |
|
|
Karsten Hopp |
fdbc74 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fdbc74 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fdbc74 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
fdbc74 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|