alaffin | f558990 | 2000-09-21 21:35:06 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of version 2 of the GNU General Public License as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it would be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | * |
| 12 | * Further, this software is distributed without any warranty that it is |
| 13 | * free of the rightful claim of any third person regarding infringement |
| 14 | * or the like. Any license provided herein, whether implied or |
| 15 | * otherwise, applies only to this software file. Patent licenses, if |
| 16 | * any, provided herein do not apply to combinations of this program with |
| 17 | * other software, or any other product whatsoever. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License along |
Wanlong Gao | fed9641 | 2012-10-24 10:10:29 +0800 | [diff] [blame] | 20 | * with this program; if not, write the Free Software Foundation, Inc., |
| 21 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
alaffin | f558990 | 2000-09-21 21:35:06 +0000 | [diff] [blame] | 22 | * |
| 23 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
| 24 | * Mountain View, CA 94043, or: |
| 25 | * |
| 26 | * http://www.sgi.com |
| 27 | * |
| 28 | * For further information regarding this notice, see: |
| 29 | * |
| 30 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ |
| 31 | * |
| 32 | */ |
| 33 | /* $Id: debug.h,v 1.1 2000/09/21 21:35:06 alaffin Exp $ */ |
| 34 | #ifndef _DEBUG_H_ |
| 35 | #define _DEBUG_H_ |
| 36 | |
| 37 | int set_debug( char * ); |
| 38 | |
| 39 | /* |
| 40 | * DEBUG support |
| 41 | * |
| 42 | * use -DDEBUGGING with cc to enable debugging |
| 43 | */ |
| 44 | #ifdef DEBUGGING |
| 45 | |
| 46 | extern int Debug[]; |
| 47 | #define MAXDEBUG 30 |
Garrett Cooper | 903910d | 2010-11-23 09:27:44 -0800 | [diff] [blame] | 48 | #define DEBUG(a,l) if (Debug[a] >= l) |
| 49 | #define DEBUGO(a,l,c) if (Debug[a] >= l || c) |
alaffin | f558990 | 2000-09-21 21:35:06 +0000 | [diff] [blame] | 50 | |
| 51 | #else |
| 52 | |
Garrett Cooper | 903910d | 2010-11-23 09:27:44 -0800 | [diff] [blame] | 53 | #define DEBUG(a,l) if (0) |
| 54 | #define DEBUGO(a,l,c) if (0) |
alaffin | f558990 | 2000-09-21 21:35:06 +0000 | [diff] [blame] | 55 | |
| 56 | #endif |
| 57 | |
| 58 | #define D_INIT 1 |
| 59 | #define D_SCAN 2 |
| 60 | #define D_SCAN_LEX 3 |
| 61 | #define D_SCAN_CUTS 4 |
| 62 | #define D_REPORT 5 |
| 63 | #define D_REP_H 6 |
| 64 | #define D_REP_CUTS 7 |
| 65 | |
| 66 | |
| 67 | #endif |