1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debug.h Sat Dec 29 15:23:49 2007 +0100
1.3 @@ -0,0 +1,33 @@
1.4 +/* debug.h
1.5 +Copyright (c) 2000-2002 Craig Condit, Stefan Hülswitt.
1.6 +
1.7 +Redistribution and use in source and binary forms, with or without
1.8 +modification, are permitted provided that the following conditions are met:
1.9 +
1.10 +1. Redistributions of source code must retain the above copyright notice,
1.11 + this list of conditions and the following disclaimer.
1.12 +2. Redistributions in binary form must reproduce the above copyright notice,
1.13 + this list of conditions and the following disclaimer in the documentation
1.14 + and/or other materials provided with the distribution.
1.15 +
1.16 +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
1.17 +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1.18 +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1.19 +DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
1.20 +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.21 +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1.22 +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1.23 +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.24 +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.25 +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.26 +SUCH DAMAGE.
1.27 +*/
1.28 +
1.29 +#ifndef _CDBACKUP_DEBUG_H
1.30 +#define _CDBACKUP_DEBUG_H
1.31 +
1.32 +extern int debug;
1.33 +
1.34 +#define DEBUG(format,args...) { if(debug) fprintf(stderr,format, ## args); }
1.35 +
1.36 +#endif