159243Sobrien/* 259243Sobrien * tc.h: Tcsh includes 359243Sobrien */ 459243Sobrien/*- 559243Sobrien * Copyright (c) 1980, 1991 The Regents of the University of California. 659243Sobrien * All rights reserved. 759243Sobrien * 859243Sobrien * Redistribution and use in source and binary forms, with or without 959243Sobrien * modification, are permitted provided that the following conditions 1059243Sobrien * are met: 1159243Sobrien * 1. Redistributions of source code must retain the above copyright 1259243Sobrien * notice, this list of conditions and the following disclaimer. 1359243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1459243Sobrien * notice, this list of conditions and the following disclaimer in the 1559243Sobrien * documentation and/or other materials provided with the distribution. 16100616Smp * 3. Neither the name of the University nor the names of its contributors 1759243Sobrien * may be used to endorse or promote products derived from this software 1859243Sobrien * without specific prior written permission. 1959243Sobrien * 2059243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2159243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2259243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2359243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2459243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2559243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2659243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2759243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2859243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2959243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3059243Sobrien * SUCH DAMAGE. 3159243Sobrien */ 3259243Sobrien#ifndef _h_tc 3359243Sobrien#define _h_tc 3459243Sobrien 3559243Sobrien#ifndef _h_tc_const 3659243Sobrien/* Don't include it while we are making it. */ 3759243Sobrien# include "tc.const.h" 3859243Sobrien#endif /* _h_tc_const */ 3959243Sobrien#include "tc.os.h" 4059243Sobrien#include "tc.sig.h" 4159243Sobrien#include "tc.decls.h" 4259243Sobrien 43167465Smpextern size_t tlength; 44145479Smp 4559243Sobrien#define FMT_PROMPT 0 4659243Sobrien#define FMT_WHO 1 4759243Sobrien#define FMT_HISTORY 2 4859243Sobrien#define FMT_SCHED 3 4959243Sobrien 50167465Smpstruct strbuf { 51167465Smp char *s; 52167465Smp size_t len; /* Valid characters */ 53167465Smp size_t size; /* Allocated characters */ 54167465Smp}; 55167465Smp 56167465Smpstruct Strbuf { 57167465Smp Char *s; 58167465Smp size_t len; /* Valid characters */ 59167465Smp size_t size; /* Allocated characters */ 60167465Smp}; 61167465Smp 62167465Smp/* We don't have explicit initializers for variables with static storage 63167465Smp duration, so these values should be equivalent to default initialization. */ 64167465Smp#define strbuf_INIT { NULL, 0, 0 } 65167465Smp#define Strbuf_INIT { NULL, 0, 0 } 66167465Smpextern const struct strbuf strbuf_init; 67167465Smpextern const struct Strbuf Strbuf_init; 68167465Smp 69167465Smp/* A string vector in progress */ 70167465Smpstruct blk_buf 71167465Smp{ 72167465Smp Char **vec; 73167465Smp size_t len; /* Valid strings */ 74167465Smp size_t size; /* Allocated space for string pointers */ 75167465Smp}; 76167465Smp 77167465Smp#define BLK_BUF_INIT { NULL, 0, 0 } 78167465Smp 7959243Sobrien#endif /* _h_tc */ 80