~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to src/nbdebug.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
u_int            nb_dlevel = 0;         /* nb_debug verbosity level */
34
34
 
35
35
void             nbdb(char *, ...);
36
 
void             nbtrace(char *, ...);
37
36
 
38
37
static int       lookup(char *);
39
38
#ifdef USE_NB_ERRORHANDLER
100
99
}    /* end nbdebug_log_init */
101
100
 
102
101
 
103
 
 
104
 
 
105
 
void
106
 
nbtrace(
107
 
        char            *fmt,
108
 
        ...)
109
 
{
110
 
        va_list          ap;
111
 
 
112
 
        if (nb_debug!= NULL && (nb_dlevel & (NB_TRACE | NB_TRACE_VERBOSE))) {
113
 
                va_start(ap, fmt);
114
 
                vfprintf(nb_debug, fmt, ap);
115
 
                va_end(ap);
116
 
                fflush(nb_debug);
117
 
        }
118
 
 
119
 
}    /* end nbtrace */
120
 
 
121
 
 
122
102
void
123
103
nbdbg(
124
104
        char            *fmt,
136
116
}    /* end nbdbg */
137
117
 
138
118
 
139
 
void
140
 
nbprt(
141
 
        char            *fmt,
142
 
        ...)
143
 
{
144
 
        va_list          ap;
145
 
 
146
 
        if (nb_debug != NULL && nb_dlevel & NB_PRINT) {
147
 
                va_start(ap, fmt);
148
 
                vfprintf(nb_debug, fmt, ap);
149
 
                va_end(ap);
150
 
                fflush(nb_debug);
151
 
        }
152
 
 
153
 
}    /* end nbprt */
154
 
 
155
 
 
156
119
static int
157
120
lookup(
158
121
        char            *file)