1 /* 2 * sqsh_debug.h - Prototypes for debugging routines. 3 * 4 * Copyright (C) 1995, 1996 by Scott C. Gray 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, write to the Free Software 18 * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 19 * 20 * You may contact the author : 21 * e-mail: gray@voicenet.com 22 * grays@xtend-tech.com 23 * gray@xenotropic.com 24 */ 25 #ifndef sqsh_debug_h_included 26 #define sqsh_debug_h_included 27 28 #define DEBUG_FD (1<<0) /* Debug file descriptor code */ 29 #define DEBUG_SIGCLD (1<<1) /* Debug code for SIGCHLD handling */ 30 #define DEBUG_ENV (1<<2) /* Debug environment variables */ 31 #define DEBUG_JOB (1<<3) /* Debug launching of jobs */ 32 #define DEBUG_EXPAND (1<<4) /* Debug expansion of variables */ 33 #define DEBUG_AVL (1<<5) /* Debug avl tree code */ 34 #define DEBUG_READLINE (1<<6) /* Debug readline code */ 35 #define DEBUG_SCREEN (1<<7) /* Debug anything related to the display */ 36 #define DEBUG_ALIAS (1<<8) /* Debug command aliasing */ 37 #define DEBUG_DISPLAY (1<<9) /* Debug result set display routines */ 38 #define DEBUG_BCP (1<<10) /* Debug the bcp command */ 39 #define DEBUG_RPC (1<<11) /* Debug the rpc command */ 40 #define DEBUG_ERROR (1<<12) /* Debug error handlers */ 41 #define DEBUG_SIG (1<<13) /* Debug signal handlers */ 42 #define DEBUG_HISTORY (1<<14) /* Debug history processing */ 43 #define DEBUG_TDS (1<<15) /* Debug TDS protocol CS communications */ 44 #define DEBUG_ALL ~(0) /* Turn on all debugging */ 45 46 #if defined(DEBUG) 47 # define DBG(x) x 48 #else 49 # define DBG(x) 50 #endif 51 52 int sqsh_debug_level _ANSI_ARGS(( int )) ; 53 int sqsh_debug_show _ANSI_ARGS(( int )) ; 54 void sqsh_debug _ANSI_ARGS(( int, char*, ... )) ; 55 56 #endif /* sqsh_debug_h_included */ 57