tw.decls.h revision 100616
1115921Sache/* $Header: /src/pub/tcsh/tw.decls.h,v 3.18 2002/03/08 17:36:47 christos Exp $ */ 2115921Sache/* 3115921Sache * tw.decls.h: Tenex external declarations 4115921Sache */ 5115921Sache/*- 6115921Sache * Copyright (c) 1980, 1991 The Regents of the University of California. 7115921Sache * All rights reserved. 8115921Sache * 9115921Sache * Redistribution and use in source and binary forms, with or without 10115921Sache * modification, are permitted provided that the following conditions 11115921Sache * are met: 12115921Sache * 1. Redistributions of source code must retain the above copyright 13115921Sache * notice, this list of conditions and the following disclaimer. 14115921Sache * 2. Redistributions in binary form must reproduce the above copyright 15115921Sache * notice, this list of conditions and the following disclaimer in the 16115921Sache * documentation and/or other materials provided with the distribution. 17115921Sache * 3. Neither the name of the University nor the names of its contributors 18115921Sache * may be used to endorse or promote products derived from this software 19115921Sache * without specific prior written permission. 20115921Sache * 21115921Sache * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22115921Sache * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23115921Sache * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24115921Sache * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25115921Sache * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26115921Sache * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27115921Sache * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28115921Sache * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29115921Sache * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30115921Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31115921Sache * SUCH DAMAGE. 32115921Sache */ 33115921Sache#ifndef _h_tw_decls 34115925Sache#define _h_tw_decls 35115921Sache 36115921Sache/* 37115921Sache * tw.help.c 38115921Sache */ 39115925Sacheextern void do_help __P((Char *)); 40115921Sache 41115921Sache/* 42115921Sache * tw.parse.c 43115921Sache */ 44extern Char *dollar __P((Char *, const Char *)); 45#ifndef __MVS__ 46extern int tenematch __P((Char *, int, COMMAND)); 47extern int t_search __P((Char *, Char *, COMMAND, 48 int, int, int, Char *, 49 int)); 50#endif 51extern int starting_a_command __P((Char *, Char *)); 52extern void copyn __P((Char *, Char *, int)); 53extern void catn __P((Char *, Char *, int)); 54extern int fcompare __P((Char **, Char **)); 55extern void print_by_column __P((Char *, Char *[], int, 56 int)); 57extern int StrQcmp __P((Char *, Char *)); 58extern Char *tgetenv __P((Char *)); 59 60/* 61 * tw.init.c 62 */ 63extern void tw_alias_start __P((DIR *, Char *)); 64extern void tw_cmd_start __P((DIR *, Char *)); 65extern void tw_logname_start __P((DIR *, Char *)); 66extern void tw_var_start __P((DIR *, Char *)); 67extern void tw_complete_start __P((DIR *, Char *)); 68extern void tw_file_start __P((DIR *, Char *)); 69extern void tw_vl_start __P((DIR *, Char *)); 70extern void tw_wl_start __P((DIR *, Char *)); 71extern void tw_bind_start __P((DIR *, Char *)); 72extern void tw_limit_start __P((DIR *, Char *)); 73extern void tw_sig_start __P((DIR *, Char *)); 74extern void tw_job_start __P((DIR *, Char *)); 75extern void tw_grpname_start __P((DIR *, Char *)); 76extern Char *tw_cmd_next __P((Char *, int *)); 77extern Char *tw_logname_next __P((Char *, int *)); 78extern Char *tw_shvar_next __P((Char *, int *)); 79extern Char *tw_envvar_next __P((Char *, int *)); 80extern Char *tw_var_next __P((Char *, int *)); 81extern Char *tw_file_next __P((Char *, int *)); 82extern Char *tw_wl_next __P((Char *, int *)); 83extern Char *tw_bind_next __P((Char *, int *)); 84extern Char *tw_limit_next __P((Char *, int *)); 85extern Char *tw_sig_next __P((Char *, int *)); 86extern Char *tw_job_next __P((Char *, int *)); 87extern Char *tw_grpname_next __P((Char *, int *)); 88extern void tw_dir_end __P((void)); 89extern void tw_cmd_free __P((void)); 90extern void tw_logname_end __P((void)); 91extern void tw_grpname_end __P((void)); 92extern Char *tw_item_add __P((int)); 93extern Char **tw_item_get __P((void)); 94extern void tw_item_free __P((void)); 95extern Char *tw_item_find __P((Char *)); 96 97/* 98 * tw.spell.c 99 */ 100extern int spell_me __P((Char *, int, int, 101 Char *, int)); 102extern int spdir __P((Char *, Char *, Char *, 103 Char *)); 104extern int spdist __P((Char *, Char *)); 105 106/* 107 * tw.comp.c 108 */ 109extern void docomplete __P((Char **, 110 struct command *)); 111extern void douncomplete __P((Char **, 112 struct command *)); 113extern int tw_complete __P((Char *, Char **, 114 Char **, int, int *)); 115#ifdef COLOR_LS_F 116/* 117 * tw.color.c 118 */ 119extern void set_color_context __P((void)); 120extern void print_with_color __P((Char *, size_t, int)); 121extern void parseLS_COLORS __P((Char *)); 122#endif /* COLOR_LS_F */ 123 124#endif /* _h_tw_decls */ 125