BSD 4_4 release
[unix-history] / usr / src / sys / netiso / argo_debug.h
index 1a2bdbd..653982f 100644 (file)
@@ -1,4 +1,40 @@
-/*********************************************************** Copyright IBM Corporation 1987
+/*-
+ * Copyright (c) 1991, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)argo_debug.h        8.1 (Berkeley) 6/10/93
+ */
+
+/*****************************************************************
+                               Copyright IBM Corporation 1987
 
                       All Rights Reserved
 
 
                       All Rights Reserved
 
@@ -26,8 +62,8 @@ SOFTWARE.
 /* 
  * $Header: argo_debug.h,v 4.6 88/07/19 15:53:40 hagens Exp $
  * $Source: /usr/argo/sys/netiso/RCS/argo_debug.h,v $
 /* 
  * $Header: argo_debug.h,v 4.6 88/07/19 15:53:40 hagens Exp $
  * $Source: /usr/argo/sys/netiso/RCS/argo_debug.h,v $
- *     @(#)argo_debug.h        7.2 (Berkeley) %G%
  */
  */
+
 #ifndef __ARGO_DEBUG__
 #define __ARGO_DEBUG__
 
 #ifndef __ARGO_DEBUG__
 #define __ARGO_DEBUG__
 
@@ -41,14 +77,14 @@ SOFTWARE.
  * lint can't handle the flaky vacuous definitions 
  * of IFDEBUG, ENDDEBUG, etc.
  */
  * lint can't handle the flaky vacuous definitions 
  * of IFDEBUG, ENDDEBUG, etc.
  */
-#endif defined(lint)
+#endif /* defined(lint) */
 
 /***********************************************
  * DEBUG ON:
  **********************************************/
 #ifndef ARGO_DEBUG
 #define ARGO_DEBUG
 
 /***********************************************
  * DEBUG ON:
  **********************************************/
 #ifndef ARGO_DEBUG
 #define ARGO_DEBUG
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 
 #ifdef ARGO_DEBUG
 
 
 #ifdef ARGO_DEBUG
@@ -68,7 +104,7 @@ unsigned char        argo_debug[128];
        if(argo_debug[ascii]) { 
 #define ENDDEBUG  ; }
 
        if(argo_debug[ascii]) { 
 #define ENDDEBUG  ; }
 
-#else  ARGO_DEBUG
+#else  /* ARGO_DEBUG */
 
 /***********************************************
  * DEBUG OFF:
 
 /***********************************************
  * DEBUG OFF:
@@ -76,11 +112,11 @@ unsigned char      argo_debug[128];
 
 #ifndef STAR
 #define STAR *
 
 #ifndef STAR
 #define STAR *
-#endif STAR
+#endif /* STAR */
 #define IFDEBUG(ascii)  //*beginning of comment*/STAR
 #define ENDDEBUG        STAR/*end of comment*//
 
 #define IFDEBUG(ascii)  //*beginning of comment*/STAR
 #define ENDDEBUG        STAR/*end of comment*//
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 /***********************************************
  * ASSERT 
 
 /***********************************************
  * ASSERT 
@@ -90,15 +126,15 @@ unsigned char      argo_debug[128];
 #ifndef lint
 #define ASSERT(phrase) \
 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
 #ifndef lint
 #define ASSERT(phrase) \
 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
-#else lint
+#else /* lint */
 #define ASSERT(phrase) /* phrase */
 #define ASSERT(phrase) /* phrase */
-#endif lint
+#endif /* lint */
 
 
-#else ARGO_DEBUG
+#else /* ARGO_DEBUG */
 
 #define ASSERT(phrase) /* phrase */
 
 
 #define ASSERT(phrase) /* phrase */
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 
 /***********************************************
 
 
 /***********************************************
@@ -148,6 +184,12 @@ char *clnp_iso_addrp();
 #define        D_ESISINPUT             '\31'
 #define D_SNPA                 '\32'
 
 #define        D_ESISINPUT             '\31'
 #define D_SNPA                 '\32'
 
+/***********************************************
+ * ISIS DEBUG OPTIONS
+ **********************************************/
+#define D_ISISOUTPUT   '\40'
+#define D_ISISINPUT            '\41'
+
 /***********************************************
  * EON DEBUG OPTION
  **********************************************/
 /***********************************************
  * EON DEBUG OPTION
  **********************************************/
@@ -236,7 +278,7 @@ void dump_mbuf();
 #define        TPMT_PCB        0x23
 #define        TPMT_PERF       0x45
 
 #define        TPMT_PCB        0x23
 #define        TPMT_PERF       0x45
 
-#else ARGO_DEBUG
+#else /* ARGO_DEBUG */
 
 #define        TPMT_DATA       MT_DATA
 #define        TPMT_RCVRTC     MT_DATA
 
 #define        TPMT_DATA       MT_DATA
 #define        TPMT_RCVRTC     MT_DATA
@@ -249,6 +291,6 @@ void dump_mbuf();
 #define        TPMT_PCB        MT_PCB
 #define        TPMT_PERF       MT_PCB
 
 #define        TPMT_PCB        MT_PCB
 #define        TPMT_PERF       MT_PCB
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 
-#endif __ARGO_DEBUG__
+#endif /* __ARGO_DEBUG__ */