* Create help for explaining how encrypted password file support
[alpine.git] / pith / debug.h
blob912791d85a281061d2fb23d49902ced22e5537ff
1 /*
2 * $Id: debug.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_DEBUG_INCLUDED
17 #define PITH_DEBUG_INCLUDED
20 /*======================================================================
21 Macros for debug printfs
22 n is debugging level:
23 1 logs only highest level events and errors
24 2 logs events like file writes
26 4 logs each command
29 7 logs details of command execution (7 is highest to run any production)
30 allows core dumps without cleaning up terminal modes
32 9 logs gross details of command execution
34 ====*/
37 #ifdef DEBUG
39 #define dprint(x) { output_debug_msg x ; }
41 /* global debugging level */
42 extern int debug;
44 /* mandatory to implement stubs */
45 void output_debug_msg(int, char *fmt, ...);
46 void dump_configuration(int);
47 void dump_contexts();
51 #else /* !DEBUG */
53 #define dprint(x)
55 #endif /* !DEBUG */
58 #endif /* PITH_DEBUG_INCLUDED */