1167465Smp/* $Header: /p/tcsh/cvsroot/tcsh/tw.decls.h,v 3.22 2006/01/12 18:15:25 christos 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. 17100616Smp * 3. Neither the name of the University nor the names of its contributors 1859243Sobrien * may be used to endorse or promote products derived from this software 1959243Sobrien * without specific prior written permission. 2059243Sobrien * 2159243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2259243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2359243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2459243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2559243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2659243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2759243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2859243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2959243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3059243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3159243Sobrien * SUCH DAMAGE. 3259243Sobrien */ 3359243Sobrien#ifndef _h_tw_decls 3459243Sobrien#define _h_tw_decls 3559243Sobrien 3659243Sobrien/* 3759243Sobrien * tw.help.c 3859243Sobrien */ 39167465Smpextern void do_help (const Char *); 4059243Sobrien 4159243Sobrien/* 4259243Sobrien * tw.parse.c 4359243Sobrien */ 44167465Smpextern Char *dollar (const Char *); 4569408Sache#ifndef __MVS__ 46167465Smpextern int tenematch (Char *, int, COMMAND); 47167465Smpextern int t_search (struct Strbuf *, COMMAND, int, 48167465Smp int, Char *, eChar); 4969408Sache#endif 50167465Smpextern int starting_a_command (Char *, Char *); 51167465Smpextern int fcompare (const void *, const void *); 52167465Smpextern void print_by_column (Char *, Char *[], int, int); 53167465Smpextern int StrQcmp (const Char *, const Char *); 54167465Smpextern Char *tgetenv (Char *); 5559243Sobrien 5659243Sobrien/* 5759243Sobrien * tw.init.c 5859243Sobrien */ 59167465Smpextern void tw_alias_start (DIR *, const Char *); 60167465Smpextern void tw_cmd_start (DIR *, const Char *); 61167465Smpextern void tw_logname_start (DIR *, const Char *); 62167465Smpextern void tw_var_start (DIR *, const Char *); 63167465Smpextern void tw_complete_start (DIR *, const Char *); 64167465Smpextern void tw_file_start (DIR *, const Char *); 65167465Smpextern void tw_vl_start (DIR *, const Char *); 66167465Smpextern void tw_wl_start (DIR *, const Char *); 67167465Smpextern void tw_bind_start (DIR *, const Char *); 68167465Smpextern void tw_limit_start (DIR *, const Char *); 69167465Smpextern void tw_sig_start (DIR *, const Char *); 70167465Smpextern void tw_job_start (DIR *, const Char *); 71167465Smpextern void tw_grpname_start (DIR *, const Char *); 72167465Smpextern int tw_cmd_next (struct Strbuf *, 73167465Smp struct Strbuf *, int *); 74167465Smpextern int tw_logname_next (struct Strbuf *, 75167465Smp struct Strbuf *, int *); 76167465Smpextern int tw_shvar_next (struct Strbuf *, 77167465Smp struct Strbuf *, int *); 78167465Smpextern int tw_envvar_next (struct Strbuf *, 79167465Smp struct Strbuf *, int *); 80167465Smpextern int tw_var_next (struct Strbuf *, 81167465Smp struct Strbuf *, int *); 82167465Smpextern int tw_file_next (struct Strbuf *, 83167465Smp struct Strbuf *, int *); 84167465Smpextern int tw_wl_next (struct Strbuf *, 85167465Smp struct Strbuf *, int *); 86167465Smpextern int tw_bind_next (struct Strbuf *, 87167465Smp struct Strbuf *, int *); 88167465Smpextern int tw_limit_next (struct Strbuf *, 89167465Smp struct Strbuf *, int *); 90167465Smpextern int tw_sig_next (struct Strbuf *, 91167465Smp struct Strbuf *, int *); 92167465Smpextern int tw_job_next (struct Strbuf *, 93167465Smp struct Strbuf *, int *); 94167465Smpextern int tw_grpname_next (struct Strbuf *, 95167465Smp struct Strbuf *, int *); 96167465Smpextern void tw_dir_end (void); 97167465Smpextern void tw_cmd_free (void); 98167465Smpextern void tw_logname_end (void); 99167465Smpextern void tw_grpname_end (void); 100167465Smpextern void tw_item_add (const struct Strbuf *); 101167465Smpextern Char **tw_item_get (void); 102167465Smpextern void tw_item_free (void); 103167465Smpextern Char *tw_item_find (Char *); 10459243Sobrien 10559243Sobrien/* 10659243Sobrien * tw.spell.c 10759243Sobrien */ 108167465Smpextern int spell_me (struct Strbuf *, int, Char *, 109167465Smp eChar); 110167465Smpextern int spdir (struct Strbuf *, const Char *, 111167465Smp const Char *, Char *); 112167465Smpextern int spdist (const Char *, const Char *); 11359243Sobrien 11459243Sobrien/* 11559243Sobrien * tw.comp.c 11659243Sobrien */ 117167465Smpextern void docomplete (Char **, struct command *); 118167465Smpextern void douncomplete (Char **, struct command *); 119167465Smpextern int tw_complete (const Char *, Char **, 120167465Smp Char **, int, eChar *); 12159243Sobrien#ifdef COLOR_LS_F 12259243Sobrien/* 12359243Sobrien * tw.color.c 12459243Sobrien */ 125167465Smpextern void set_color_context (void); 126167465Smpextern void print_with_color (const Char *, size_t, Char); 127167465Smpextern void parseLS_COLORS (const Char *); 12859243Sobrien#endif /* COLOR_LS_F */ 12959243Sobrien 13059243Sobrien#endif /* _h_tw_decls */ 131