"Fossies" - the Fresh Open Source Software Archive 
Member "tin-2.6.2/include/debug.h" (9 Dec 2022, 2350 Bytes) of package /linux/misc/tin-2.6.2.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "debug.h" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
2.6.1_vs_2.6.2.
1 /*
2 * Project : tin - a Usenet reader
3 * Module : debug.h
4 * Author : Urs Janssen <urs@tin.org>
5 * Created :
6 * Updated : 2016-02-27
7 * Notes :
8 *
9 * Copyright (c) 2007-2023 Urs Janssen <urs@tin.org>
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 *
16 * 1. Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
18 *
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * 3. Neither the name of the copyright holder nor the names of its
24 * contributors may be used to endorse or promote products derived from
25 * this software without specific prior written permission.
26 *
27 * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40
41 #ifndef DEBUG_H
42 # define DEBUG_H 1
43
44 # ifdef NNTP_ABLE
45 # define DEBUG_NNTP 0x01 /* 1 */
46 # else
47 # define DEBUG_NNTP 0x00 /* disabled */
48 # endif /* NNTP_ABLE */
49 # define DEBUG_FILTER 0x02 /* 2 */
50 # define DEBUG_NEWSRC 0x04 /* 4 */
51 # define DEBUG_REFS 0x08 /* 8 */
52 # define DEBUG_MEM 0x10 /* 16 */
53 # define DEBUG_ATTRIB 0x20 /* 32 */
54 # define DEBUG_MISC 0x40 /* 64 */
55 # define DEBUG_ALL 0x7f /* 127 */
56 # define DEBUG_REMOVE 0x80 /* 128 */
57
58
59 # if 0 /* this is very noisy */
60 # define DEBUG_IO(x) fprintf x
61 # else
62 # define DEBUG_IO(x) /* nothing */
63 # endif /* 0 */
64 #endif /* !DEBUG_H */