"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/include/debug.h" (12 Oct 2016, 2248 Bytes) of archive /linux/misc/tin-2.4.1.tar.gz:


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.4.0_vs_2.4.1.

    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-2017 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  * 1. Redistributions of source code must retain the above copyright
   16  *    notice, this list of conditions and the following disclaimer.
   17  * 2. Redistributions in binary form must reproduce the above copyright
   18  *    notice, this list of conditions and the following disclaimer in the
   19  *    documentation and/or other materials provided with the distribution.
   20  * 3. The name of the author may not be used to endorse or promote
   21  *    products derived from this software without specific prior written
   22  *    permission.
   23  *
   24  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
   25  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   26  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   27  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
   28  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   30  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
   32  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   33  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   34  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   35  */
   36 
   37 
   38 #ifndef DEBUG_H
   39 #   define DEBUG_H 1
   40 
   41 #   ifdef NNTP_ABLE
   42 #       define DEBUG_NNTP   0x01    /* 1 */
   43 #   else
   44 #       define DEBUG_NNTP   0x00    /* disabled */
   45 #   endif /* NNTP_ABLE */
   46 #   define DEBUG_FILTER 0x02    /* 2 */
   47 #   define DEBUG_NEWSRC 0x04    /* 4 */
   48 #   define DEBUG_REFS   0x08    /* 8 */
   49 #   define DEBUG_MEM    0x10    /* 16 */
   50 #   define DEBUG_ATTRIB 0x20    /* 32 */
   51 #   define DEBUG_MISC   0x40    /* 64 */
   52 #   define DEBUG_ALL    0x7f    /* 127 */
   53 #   define DEBUG_REMOVE 0x80    /* 128 */
   54 
   55 
   56 #   if 0 /* this is very noisy */
   57 #       define DEBUG_IO(x)  fprintf x
   58 #   else
   59 #       define DEBUG_IO(x)  /* nothing */
   60 #   endif /* 0 */
   61 #endif /* !DEBUG_H */