show.h revision 1.6
11.6Sdsl/* $NetBSD: show.h,v 1.6 2003/01/22 20:36:04 dsl Exp $ */ 21.1Schristos 31.1Schristos/*- 41.1Schristos * Copyright (c) 1995 51.1Schristos * The Regents of the University of California. All rights reserved. 61.1Schristos * 71.1Schristos * Redistribution and use in source and binary forms, with or without 81.1Schristos * modification, are permitted provided that the following conditions 91.1Schristos * are met: 101.1Schristos * 1. Redistributions of source code must retain the above copyright 111.1Schristos * notice, this list of conditions and the following disclaimer. 121.1Schristos * 2. Redistributions in binary form must reproduce the above copyright 131.1Schristos * notice, this list of conditions and the following disclaimer in the 141.1Schristos * documentation and/or other materials provided with the distribution. 151.1Schristos * 3. All advertising materials mentioning features or use of this software 161.1Schristos * must display the following acknowledgement: 171.1Schristos * This product includes software developed by the University of 181.1Schristos * California, Berkeley and its contributors. 191.1Schristos * 4. Neither the name of the University nor the names of its contributors 201.1Schristos * may be used to endorse or promote products derived from this software 211.1Schristos * without specific prior written permission. 221.1Schristos * 231.1Schristos * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.1Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.1Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Schristos * SUCH DAMAGE. 341.1Schristos * 351.1Schristos * @(#)show.h 1.1 (Berkeley) 5/4/95 361.1Schristos */ 371.1Schristos 381.6Sdsl#include <stdarg.h> 391.6Sdsl 401.3Schristosunion node; 411.5Schristosvoid showtree(union node *); 421.5Schristosvoid trace(const char *, ...); 431.6Sdslvoid tracev(const char *, va_list); 441.5Schristosvoid trargs(char **); 451.2Schristos#ifdef DEBUG 461.5Schristosvoid trputc(int); 471.5Schristosvoid trputs(const char *); 481.5Schristosvoid opentrace(void); 491.2Schristos#endif 50