1069428afSPeter Wemm /*- 28a16b7a1SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 38a16b7a1SPedro F. Giffuni * 4069428afSPeter Wemm * Copyright (c) 1995 5069428afSPeter Wemm * The Regents of the University of California. All rights reserved. 6069428afSPeter Wemm * 7069428afSPeter Wemm * Redistribution and use in source and binary forms, with or without 8069428afSPeter Wemm * modification, are permitted provided that the following conditions 9069428afSPeter Wemm * are met: 10069428afSPeter Wemm * 1. Redistributions of source code must retain the above copyright 11069428afSPeter Wemm * notice, this list of conditions and the following disclaimer. 12069428afSPeter Wemm * 2. Redistributions in binary form must reproduce the above copyright 13069428afSPeter Wemm * notice, this list of conditions and the following disclaimer in the 14069428afSPeter Wemm * documentation and/or other materials provided with the distribution. 15fbbd9655SWarner Losh * 3. Neither the name of the University nor the names of its contributors 16069428afSPeter Wemm * may be used to endorse or promote products derived from this software 17069428afSPeter Wemm * without specific prior written permission. 18069428afSPeter Wemm * 19069428afSPeter Wemm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20069428afSPeter Wemm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21069428afSPeter Wemm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22069428afSPeter Wemm * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23069428afSPeter Wemm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24069428afSPeter Wemm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25069428afSPeter Wemm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26069428afSPeter Wemm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27069428afSPeter Wemm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28069428afSPeter Wemm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29069428afSPeter Wemm * SUCH DAMAGE. 30069428afSPeter Wemm */ 31069428afSPeter Wemm 325134c3f7SWarner Losh void showtree(union node *); 33ab0a2172SSteve Price #ifdef DEBUG 345134c3f7SWarner Losh void sh_trace(const char *, ...) __printflike(1, 2); 355134c3f7SWarner Losh void trargs(char **); 365134c3f7SWarner Losh void trputc(int); 372cac6e36SJilles Tjoelker void trputs(const char *); 385134c3f7SWarner Losh void opentrace(void); 39*1a4e959eSPiotr Pawel Stefaniak 40*1a4e959eSPiotr Pawel Stefaniak extern int debug; 41ab0a2172SSteve Price #endif 42