components/vim/vim72-patches/7.2.115
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.115
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=ISO-8859-1
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.115
       
    11 Problem:    Some debugging code is never used.
       
    12 Solution:   Remove nbtrace() and nbprt(). (Dominique Pelle)
       
    13 Files:      src/nbdebug.c, src/nbdebug.h
       
    14 
       
    15 *** ../vim-7.2.114/src/nbdebug.c	Tue Jun 24 23:54:30 2008
       
    16 --- src/nbdebug.c	Tue Feb 17 03:26:07 2009
       
    17 ***************
       
    18 *** 33,39 ****
       
    19   u_int		 nb_dlevel = 0;		/* nb_debug verbosity level */
       
    20   
       
    21   void		 nbdb(char *, ...);
       
    22 - void		 nbtrace(char *, ...);
       
    23   
       
    24   static int	 lookup(char *);
       
    25   #ifdef USE_NB_ERRORHANDLER
       
    26 --- 33,38 ----
       
    27 ***************
       
    28 *** 100,124 ****
       
    29   }    /* end nbdebug_log_init */
       
    30   
       
    31   
       
    32 - 
       
    33 - 
       
    34 - void
       
    35 - nbtrace(
       
    36 - 	char		*fmt,
       
    37 - 	...)
       
    38 - {
       
    39 - 	va_list		 ap;
       
    40 - 
       
    41 - 	if (nb_debug!= NULL && (nb_dlevel & (NB_TRACE | NB_TRACE_VERBOSE))) {
       
    42 - 		va_start(ap, fmt);
       
    43 - 		vfprintf(nb_debug, fmt, ap);
       
    44 - 		va_end(ap);
       
    45 - 		fflush(nb_debug);
       
    46 - 	}
       
    47 - 
       
    48 - }    /* end nbtrace */
       
    49 - 
       
    50 - 
       
    51   void
       
    52   nbdbg(
       
    53   	char		*fmt,
       
    54 --- 99,104 ----
       
    55 ***************
       
    56 *** 136,158 ****
       
    57   }    /* end nbdbg */
       
    58   
       
    59   
       
    60 - void
       
    61 - nbprt(
       
    62 - 	char		*fmt,
       
    63 - 	...)
       
    64 - {
       
    65 - 	va_list		 ap;
       
    66 - 
       
    67 - 	if (nb_debug != NULL && nb_dlevel & NB_PRINT) {
       
    68 - 		va_start(ap, fmt);
       
    69 - 		vfprintf(nb_debug, fmt, ap);
       
    70 - 		va_end(ap);
       
    71 - 		fflush(nb_debug);
       
    72 - 	}
       
    73 - 
       
    74 - }    /* end nbprt */
       
    75 - 
       
    76 - 
       
    77   static int
       
    78   lookup(
       
    79   	char		*file)
       
    80 --- 116,121 ----
       
    81 *** ../vim-7.2.114/src/nbdebug.h	Wed Jun 25 00:47:21 2008
       
    82 --- src/nbdebug.h	Tue Feb 17 03:26:38 2009
       
    83 ***************
       
    84 *** 43,50 ****
       
    85   
       
    86   
       
    87   void		 nbdbg(char *, ...);
       
    88 - void		 nbprt(char *, ...);
       
    89 - void		 nbtrace(char *, ...);
       
    90   
       
    91   void nbdebug_wait __ARGS((u_int wait_flags, char *wait_var, u_int wait_secs));
       
    92   void nbdebug_log_init __ARGS((char *log_var, char *level_var));
       
    93 --- 43,48 ----
       
    94 ***************
       
    95 *** 70,88 ****
       
    96   {
       
    97   }
       
    98   
       
    99 - void
       
   100 - nbprt(
       
   101 - 	char		*fmt,
       
   102 - 	...)
       
   103 - {
       
   104 - }
       
   105 - 
       
   106 - void
       
   107 - nbtrace(
       
   108 - 	char		*fmt,
       
   109 - 	...)
       
   110 - {
       
   111 - }
       
   112 - 
       
   113   #endif /* NBDEBUG */
       
   114   #endif /* NBDEBUG_H */
       
   115 --- 68,72 ----
       
   116 *** ../vim-7.2.114/src/version.c	Sat Feb 21 22:12:43 2009
       
   117 --- src/version.c	Sat Feb 21 22:28:21 2009
       
   118 ***************
       
   119 *** 678,679 ****
       
   120 --- 678,681 ----
       
   121   {   /* Add new patch number below this line */
       
   122 + /**/
       
   123 +     115,
       
   124   /**/
       
   125 
       
   126 -- 
       
   127 hundred-and-one symptoms of being an internet addict:
       
   128 105. When someone asks you for your address, you tell them your URL.
       
   129 
       
   130  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
   131 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
   132 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
   133  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///