tw.decls.h revision 69408
169408Sache/* $Header: /src/pub/tcsh/tw.decls.h,v 3.17 2000/06/11 02:14:16 kim Exp $ */ 259243Sobrien/* 359243Sobrien * tw.decls.h: Tenex external declarations 459243Sobrien */ 559243Sobrien/*- 659243Sobrien * Copyright (c) 1980, 1991 The Regents of the University of California. 759243Sobrien * All rights reserved. 859243Sobrien * 959243Sobrien * Redistribution and use in source and binary forms, with or without 1059243Sobrien * modification, are permitted provided that the following conditions 1159243Sobrien * are met: 1259243Sobrien * 1. Redistributions of source code must retain the above copyright 1359243Sobrien * notice, this list of conditions and the following disclaimer. 1459243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1559243Sobrien * notice, this list of conditions and the following disclaimer in the 1659243Sobrien * documentation and/or other materials provided with the distribution. 1759243Sobrien * 3. All advertising materials mentioning features or use of this software 1859243Sobrien * must display the following acknowledgement: 1959243Sobrien * This product includes software developed by the University of 2059243Sobrien * California, Berkeley and its contributors. 2159243Sobrien * 4. Neither the name of the University nor the names of its contributors 2259243Sobrien * may be used to endorse or promote products derived from this software 2359243Sobrien * without specific prior written permission. 2459243Sobrien * 2559243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2659243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2759243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2859243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2959243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3059243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3159243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3259243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3359243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3459243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3559243Sobrien * SUCH DAMAGE. 3659243Sobrien */ 3759243Sobrien#ifndef _h_tw_decls 3859243Sobrien#define _h_tw_decls 3959243Sobrien 4059243Sobrien/* 4159243Sobrien * tw.help.c 4259243Sobrien */ 4359243Sobrienextern void do_help __P((Char *)); 4459243Sobrien 4559243Sobrien/* 4659243Sobrien * tw.parse.c 4759243Sobrien */ 4859243Sobrienextern Char *dollar __P((Char *, const Char *)); 4969408Sache#ifndef __MVS__ 5059243Sobrienextern int tenematch __P((Char *, int, COMMAND)); 5159243Sobrienextern int t_search __P((Char *, Char *, COMMAND, 5259243Sobrien int, int, int, Char *, 5359243Sobrien int)); 5469408Sache#endif 5559243Sobrienextern int starting_a_command __P((Char *, Char *)); 5659243Sobrienextern void copyn __P((Char *, Char *, int)); 5759243Sobrienextern void catn __P((Char *, Char *, int)); 5859243Sobrienextern int fcompare __P((Char **, Char **)); 5959243Sobrienextern void print_by_column __P((Char *, Char *[], int, 6059243Sobrien int)); 6159243Sobrienextern int StrQcmp __P((Char *, Char *)); 6259243Sobrienextern Char *tgetenv __P((Char *)); 6359243Sobrien 6459243Sobrien/* 6559243Sobrien * tw.init.c 6659243Sobrien */ 6759243Sobrienextern void tw_alias_start __P((DIR *, Char *)); 6859243Sobrienextern void tw_cmd_start __P((DIR *, Char *)); 6959243Sobrienextern void tw_logname_start __P((DIR *, Char *)); 7059243Sobrienextern void tw_var_start __P((DIR *, Char *)); 7159243Sobrienextern void tw_complete_start __P((DIR *, Char *)); 7259243Sobrienextern void tw_file_start __P((DIR *, Char *)); 7359243Sobrienextern void tw_vl_start __P((DIR *, Char *)); 7459243Sobrienextern void tw_wl_start __P((DIR *, Char *)); 7559243Sobrienextern void tw_bind_start __P((DIR *, Char *)); 7659243Sobrienextern void tw_limit_start __P((DIR *, Char *)); 7759243Sobrienextern void tw_sig_start __P((DIR *, Char *)); 7859243Sobrienextern void tw_job_start __P((DIR *, Char *)); 7959243Sobrienextern void tw_grpname_start __P((DIR *, Char *)); 8059243Sobrienextern Char *tw_cmd_next __P((Char *, int *)); 8159243Sobrienextern Char *tw_logname_next __P((Char *, int *)); 8259243Sobrienextern Char *tw_shvar_next __P((Char *, int *)); 8359243Sobrienextern Char *tw_envvar_next __P((Char *, int *)); 8459243Sobrienextern Char *tw_var_next __P((Char *, int *)); 8559243Sobrienextern Char *tw_file_next __P((Char *, int *)); 8659243Sobrienextern Char *tw_wl_next __P((Char *, int *)); 8759243Sobrienextern Char *tw_bind_next __P((Char *, int *)); 8859243Sobrienextern Char *tw_limit_next __P((Char *, int *)); 8959243Sobrienextern Char *tw_sig_next __P((Char *, int *)); 9059243Sobrienextern Char *tw_job_next __P((Char *, int *)); 9159243Sobrienextern Char *tw_grpname_next __P((Char *, int *)); 9259243Sobrienextern void tw_dir_end __P((void)); 9359243Sobrienextern void tw_cmd_free __P((void)); 9459243Sobrienextern void tw_logname_end __P((void)); 9559243Sobrienextern void tw_grpname_end __P((void)); 9659243Sobrienextern Char *tw_item_add __P((int)); 9759243Sobrienextern Char **tw_item_get __P((void)); 9859243Sobrienextern void tw_item_free __P((void)); 9959243Sobrienextern Char *tw_item_find __P((Char *)); 10059243Sobrien 10159243Sobrien/* 10259243Sobrien * tw.spell.c 10359243Sobrien */ 10459243Sobrienextern int spell_me __P((Char *, int, int, 10559243Sobrien Char *, int)); 10659243Sobrienextern int spdir __P((Char *, Char *, Char *, 10759243Sobrien Char *)); 10859243Sobrienextern int spdist __P((Char *, Char *)); 10959243Sobrien 11059243Sobrien/* 11159243Sobrien * tw.comp.c 11259243Sobrien */ 11359243Sobrienextern void docomplete __P((Char **, 11459243Sobrien struct command *)); 11559243Sobrienextern void douncomplete __P((Char **, 11659243Sobrien struct command *)); 11759243Sobrienextern int tw_complete __P((Char *, Char **, 11859243Sobrien Char **, int, int *)); 11959243Sobrien#ifdef COLOR_LS_F 12059243Sobrien/* 12159243Sobrien * tw.color.c 12259243Sobrien */ 12359243Sobrienextern void set_color_context __P((void)); 12459243Sobrienextern void print_with_color __P((Char *, size_t, int)); 12559243Sobrienextern void parseLS_COLORS __P((Char *)); 12659243Sobrien#endif /* COLOR_LS_F */ 12759243Sobrien 12859243Sobrien#endif /* _h_tw_decls */ 129