priv.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
// ------------------------------------------------------------
//
// priv.h
//
// Internal header file for the mdbug package.
//
#pragma ident "%Z%%M% %I% %E% SMI"
// Copyright (c) 1994 by Sun Microsystems, Inc.
// .LIBRARY base
// .NAME dbug_state - used by dbug_routine to maintain state
// .SECTION Description
// The dbug_state class is used by the dbug_routine class to maintain
// state established by the dbug_push() macro.
// The priv.h include file is also used to store constructs used internally
// by the mdbug package.
#ifndef PRIV_H
#define PRIV_H
// DBUG_DOS or DBUG_UNIX should be defined in the makefile to 1
// Define various shorthand notations.
#define boolean int
#define TRUE 1
#define FALSE 0
#define NOT !
#define XOR ^
typedef unsigned long u_long;
typedef unsigned int u_int;
typedef unsigned short u_short;
typedef unsigned char u_char;
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) > (y)) ? (y) : (x))
// Determine which way the stack grows
#else
#endif
// Manifest constants which may be "tuned" if desired.
// macros for determining access to a file
inline boolean
file_exists(const char *pathname)
{
}
inline boolean
file_writable(const char *pathname)
{
}
// This class is used to maintain the state established by the
// push call.
{
dbug_state(int level);
~dbug_state();
int s_maxdepth; // Current maximum trace depth
int s_delay; // Delay amount after each output line
};
#endif /* PRIV_H */