tin  2.4.4
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.4.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

trace.h
Go to the documentation of this file.
1 /*
2  * Project : tin - a Usenet reader
3  * Module : trace.h
4  * Author : Thomas Dickey <dickey@invisible-island.net>
5  * Created : 1997-03-22
6  * Updated : 2002-11-10
7  * Notes : Interface of trace.c
8  *
9  * Copyright (c) 1997-2020 Thomas Dickey <dickey@invisible-island.net>
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 included_trace_h
42 # define included_trace_h 1
43 
44 # ifdef USE_TRACE
45 # ifdef NCURSES_VERSION
46 
47 extern char *_nc_visbuf(const char *s);
48 
49 # else
50 
51 # define _nc_visbuf(s) s
52 
53 extern void _tracef (const char *, ...)
54 # if defined(__GNUC__) && !defined(printf)
55  __attribute__ ((format(printf,1,2)))
56 # endif /* __GNUC__ && !printf */
57  ;
58 # endif /* NCURSES_VERSION */
59 
60 # define TRACE(p) _tracef p
61 
62 extern char *tin_tracechar(int c);
63 
64 # else
65 # define TRACE(p) /* nothing */
66 
67 # endif /* USE_TRACE */
68 
69 #endif /* included_trace_h */
_tracef
void _tracef(const char *fmt,...)
Definition: trace.c:53
_nc_visbuf
char * _nc_visbuf(const char *s)
Definition: trace.c:80
tin_tracechar
char * tin_tracechar(int ch)
Definition: trace.c:87