Mercurial > vim
comparison src/nbdebug.c @ 1621:82b5078be2dd
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 21:56:24 +0000 |
parents | c4d200412ae9 |
children | a954a30e4073 |
comparison
equal
deleted
inserted
replaced
1620:73fe8baea242 | 1621:82b5078be2dd |
---|---|
34 | 34 |
35 void nbdb(char *, ...); | 35 void nbdb(char *, ...); |
36 void nbtrace(char *, ...); | 36 void nbtrace(char *, ...); |
37 | 37 |
38 static int lookup(char *); | 38 static int lookup(char *); |
39 #ifndef FEAT_GUI_W32 | 39 #ifdef USE_NB_ERRORHANDLER |
40 static int errorHandler(Display *, XErrorEvent *); | 40 static int errorHandler(Display *, XErrorEvent *); |
41 #endif | 41 #endif |
42 | 42 |
43 /* | 43 /* |
44 * nbdebug_wait - This function can be used to delay or stop execution of vim. | 44 * nbdebug_wait - This function can be used to delay or stop execution of vim. |
90 if (level_var && (cp = getenv(level_var)) != NULL) { | 90 if (level_var && (cp = getenv(level_var)) != NULL) { |
91 nb_dlevel = strtoul(cp, NULL, 0); | 91 nb_dlevel = strtoul(cp, NULL, 0); |
92 } else { | 92 } else { |
93 nb_dlevel = NB_TRACE; /* default level */ | 93 nb_dlevel = NB_TRACE; /* default level */ |
94 } | 94 } |
95 #ifdef USE_NB_ERRORHANDLER | |
96 XSetErrorHandler(errorHandler); | |
97 #endif | |
95 } | 98 } |
96 | 99 |
97 } /* end nbdebug_log_init */ | 100 } /* end nbdebug_log_init */ |
98 | 101 |
99 | 102 |
164 (access(buf, 0) == 0); | 167 (access(buf, 0) == 0); |
165 #endif | 168 #endif |
166 | 169 |
167 } /* end lookup */ | 170 } /* end lookup */ |
168 | 171 |
169 #ifndef FEAT_GUI_W32 | 172 #ifdef USE_NB_ERRORHANDLER |
170 static int | 173 static int |
171 errorHandler( | 174 errorHandler( |
172 Display *dpy, | 175 Display *dpy, |
173 XErrorEvent *err) | 176 XErrorEvent *err) |
174 { | 177 { |