tw.decls.h revision 69408
1/* $Header: /src/pub/tcsh/tw.decls.h,v 3.17 2000/06/11 02:14:16 kim Exp $ */ 2/* 3 * tw.decls.h: Tenex external declarations 4 */ 5/*- 6 * Copyright (c) 1980, 1991 The Regents of the University of California. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 3. All advertising materials mentioning features or use of this software 18 * must display the following acknowledgement: 19 * This product includes software developed by the University of 20 * California, Berkeley and its contributors. 21 * 4. Neither the name of the University nor the names of its contributors 22 * may be used to endorse or promote products derived from this software 23 * without specific prior written permission. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 */ 37#ifndef _h_tw_decls 38#define _h_tw_decls 39 40/* 41 * tw.help.c 42 */ 43extern void do_help __P((Char *)); 44 45/* 46 * tw.parse.c 47 */ 48extern Char *dollar __P((Char *, const Char *)); 49#ifndef __MVS__ 50extern int tenematch __P((Char *, int, COMMAND)); 51extern int t_search __P((Char *, Char *, COMMAND, 52 int, int, int, Char *, 53 int)); 54#endif 55extern int starting_a_command __P((Char *, Char *)); 56extern void copyn __P((Char *, Char *, int)); 57extern void catn __P((Char *, Char *, int)); 58extern int fcompare __P((Char **, Char **)); 59extern void print_by_column __P((Char *, Char *[], int, 60 int)); 61extern int StrQcmp __P((Char *, Char *)); 62extern Char *tgetenv __P((Char *)); 63 64/* 65 * tw.init.c 66 */ 67extern void tw_alias_start __P((DIR *, Char *)); 68extern void tw_cmd_start __P((DIR *, Char *)); 69extern void tw_logname_start __P((DIR *, Char *)); 70extern void tw_var_start __P((DIR *, Char *)); 71extern void tw_complete_start __P((DIR *, Char *)); 72extern void tw_file_start __P((DIR *, Char *)); 73extern void tw_vl_start __P((DIR *, Char *)); 74extern void tw_wl_start __P((DIR *, Char *)); 75extern void tw_bind_start __P((DIR *, Char *)); 76extern void tw_limit_start __P((DIR *, Char *)); 77extern void tw_sig_start __P((DIR *, Char *)); 78extern void tw_job_start __P((DIR *, Char *)); 79extern void tw_grpname_start __P((DIR *, Char *)); 80extern Char *tw_cmd_next __P((Char *, int *)); 81extern Char *tw_logname_next __P((Char *, int *)); 82extern Char *tw_shvar_next __P((Char *, int *)); 83extern Char *tw_envvar_next __P((Char *, int *)); 84extern Char *tw_var_next __P((Char *, int *)); 85extern Char *tw_file_next __P((Char *, int *)); 86extern Char *tw_wl_next __P((Char *, int *)); 87extern Char *tw_bind_next __P((Char *, int *)); 88extern Char *tw_limit_next __P((Char *, int *)); 89extern Char *tw_sig_next __P((Char *, int *)); 90extern Char *tw_job_next __P((Char *, int *)); 91extern Char *tw_grpname_next __P((Char *, int *)); 92extern void tw_dir_end __P((void)); 93extern void tw_cmd_free __P((void)); 94extern void tw_logname_end __P((void)); 95extern void tw_grpname_end __P((void)); 96extern Char *tw_item_add __P((int)); 97extern Char **tw_item_get __P((void)); 98extern void tw_item_free __P((void)); 99extern Char *tw_item_find __P((Char *)); 100 101/* 102 * tw.spell.c 103 */ 104extern int spell_me __P((Char *, int, int, 105 Char *, int)); 106extern int spdir __P((Char *, Char *, Char *, 107 Char *)); 108extern int spdist __P((Char *, Char *)); 109 110/* 111 * tw.comp.c 112 */ 113extern void docomplete __P((Char **, 114 struct command *)); 115extern void douncomplete __P((Char **, 116 struct command *)); 117extern int tw_complete __P((Char *, Char **, 118 Char **, int, int *)); 119#ifdef COLOR_LS_F 120/* 121 * tw.color.c 122 */ 123extern void set_color_context __P((void)); 124extern void print_with_color __P((Char *, size_t, int)); 125extern void parseLS_COLORS __P((Char *)); 126#endif /* COLOR_LS_F */ 127 128#endif /* _h_tw_decls */ 129