File: trace.h

package info (click to toggle)
tin 981002-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 3,088 kB
  • ctags: 4,969
  • sloc: ansic: 46,800; sh: 1,655; makefile: 1,144; yacc: 699; perl: 103
file content (41 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 *  Project   : tin - a Usenet reader
 *  Module    : trace.h
 *  Author    : Thomas Dickey <dickey@clark.net>
 *  Created   : 22.03.1997
 *  Updated   : 22.03.1997
 *  Notes     : Interface of trace.c
 *  Copyright : (c) Copyright 1997-98 by Thomas Dickey
 *	             You may  freely  copy or  redistribute  this software,
 *	             so  long as there is no profit made from its use, sale
 *	             trade or  reproduction.  You may not change this copy-
 *	             right notice, and it must be included in any copy made
 */

#ifndef included_trace_h
#	define included_trace_h 1

#	ifdef USE_TRACE
#		ifdef NCURSES_VERSION

extern char *_nc_visbuf(const char *s);

#		else

#			define _nc_visbuf(s) s

extern char *_tracechar(int c);

extern void	_tracef (const char *, ...)
#			if defined(__GNUC__)
	__attribute__ ((format(printf,1,2)))
#			endif /* __GNUC__ */
	;
#		endif /* NCURSES_VERSION */

#		define TRACE(p) _tracef p;
#	else
#		define TRACE(p) /* nothing */
#	endif /* USE_TRACE */

#endif /* included_trace_h */