summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.2.115
blob: b51a1f503bb65a905641450c71ef4f8930b0751e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
To: vim-dev@vim.org
Subject: Patch 7.2.115
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 7.2.115
Problem:    Some debugging code is never used.
Solution:   Remove nbtrace() and nbprt(). (Dominique Pelle)
Files:      src/nbdebug.c, src/nbdebug.h

*** ../vim-7.2.114/src/nbdebug.c	Tue Jun 24 23:54:30 2008
--- src/nbdebug.c	Tue Feb 17 03:26:07 2009
***************
*** 33,39 ****
  u_int		 nb_dlevel = 0;		/* nb_debug verbosity level */
  
  void		 nbdb(char *, ...);
- void		 nbtrace(char *, ...);
  
  static int	 lookup(char *);
  #ifdef USE_NB_ERRORHANDLER
--- 33,38 ----
***************
*** 100,124 ****
  }    /* end nbdebug_log_init */
  
  
- 
- 
- void
- nbtrace(
- 	char		*fmt,
- 	...)
- {
- 	va_list		 ap;
- 
- 	if (nb_debug!= NULL && (nb_dlevel & (NB_TRACE | NB_TRACE_VERBOSE))) {
- 		va_start(ap, fmt);
- 		vfprintf(nb_debug, fmt, ap);
- 		va_end(ap);
- 		fflush(nb_debug);
- 	}
- 
- }    /* end nbtrace */
- 
- 
  void
  nbdbg(
  	char		*fmt,
--- 99,104 ----
***************
*** 136,158 ****
  }    /* end nbdbg */
  
  
- void
- nbprt(
- 	char		*fmt,
- 	...)
- {
- 	va_list		 ap;
- 
- 	if (nb_debug != NULL && nb_dlevel & NB_PRINT) {
- 		va_start(ap, fmt);
- 		vfprintf(nb_debug, fmt, ap);
- 		va_end(ap);
- 		fflush(nb_debug);
- 	}
- 
- }    /* end nbprt */
- 
- 
  static int
  lookup(
  	char		*file)
--- 116,121 ----
*** ../vim-7.2.114/src/nbdebug.h	Wed Jun 25 00:47:21 2008
--- src/nbdebug.h	Tue Feb 17 03:26:38 2009
***************
*** 43,50 ****
  
  
  void		 nbdbg(char *, ...);
- void		 nbprt(char *, ...);
- void		 nbtrace(char *, ...);
  
  void nbdebug_wait __ARGS((u_int wait_flags, char *wait_var, u_int wait_secs));
  void nbdebug_log_init __ARGS((char *log_var, char *level_var));
--- 43,48 ----
***************
*** 70,88 ****
  {
  }
  
- void
- nbprt(
- 	char		*fmt,
- 	...)
- {
- }
- 
- void
- nbtrace(
- 	char		*fmt,
- 	...)
- {
- }
- 
  #endif /* NBDEBUG */
  #endif /* NBDEBUG_H */
--- 68,72 ----
*** ../vim-7.2.114/src/version.c	Sat Feb 21 22:12:43 2009
--- src/version.c	Sat Feb 21 22:28:21 2009
***************
*** 678,679 ****
--- 678,681 ----
  {   /* Add new patch number below this line */
+ /**/
+     115,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
105. When someone asks you for your address, you tell them your URL.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///