159243Sobrien/* 259243Sobrien * tw.decls.h: Tenex external declarations 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_tw_decls 3359243Sobrien#define _h_tw_decls 3459243Sobrien 3559243Sobrien/* 3659243Sobrien * tw.help.c 3759243Sobrien */ 38167465Smpextern void do_help (const Char *); 3959243Sobrien 4059243Sobrien/* 4159243Sobrien * tw.parse.c 4259243Sobrien */ 43167465Smpextern Char *dollar (const Char *); 4469408Sache#ifndef __MVS__ 45167465Smpextern int tenematch (Char *, int, COMMAND); 46167465Smpextern int t_search (struct Strbuf *, COMMAND, int, 47167465Smp int, Char *, eChar); 4869408Sache#endif 49167465Smpextern int starting_a_command (Char *, Char *); 50167465Smpextern int fcompare (const void *, const void *); 51167465Smpextern void print_by_column (Char *, Char *[], int, int); 52167465Smpextern int StrQcmp (const Char *, const Char *); 53167465Smpextern Char *tgetenv (Char *); 5459243Sobrien 5559243Sobrien/* 5659243Sobrien * tw.init.c 5759243Sobrien */ 58167465Smpextern void tw_alias_start (DIR *, const Char *); 59167465Smpextern void tw_cmd_start (DIR *, const Char *); 60167465Smpextern void tw_logname_start (DIR *, const Char *); 61167465Smpextern void tw_var_start (DIR *, const Char *); 62167465Smpextern void tw_complete_start (DIR *, const Char *); 63167465Smpextern void tw_file_start (DIR *, const Char *); 64167465Smpextern void tw_vl_start (DIR *, const Char *); 65167465Smpextern void tw_wl_start (DIR *, const Char *); 66167465Smpextern void tw_bind_start (DIR *, const Char *); 67167465Smpextern void tw_limit_start (DIR *, const Char *); 68167465Smpextern void tw_sig_start (DIR *, const Char *); 69167465Smpextern void tw_job_start (DIR *, const Char *); 70167465Smpextern void tw_grpname_start (DIR *, const Char *); 71167465Smpextern int tw_cmd_next (struct Strbuf *, 72167465Smp struct Strbuf *, int *); 73167465Smpextern int tw_logname_next (struct Strbuf *, 74167465Smp struct Strbuf *, int *); 75167465Smpextern int tw_shvar_next (struct Strbuf *, 76167465Smp struct Strbuf *, int *); 77167465Smpextern int tw_envvar_next (struct Strbuf *, 78167465Smp struct Strbuf *, int *); 79167465Smpextern int tw_var_next (struct Strbuf *, 80167465Smp struct Strbuf *, int *); 81167465Smpextern int tw_file_next (struct Strbuf *, 82167465Smp struct Strbuf *, int *); 83167465Smpextern int tw_wl_next (struct Strbuf *, 84167465Smp struct Strbuf *, int *); 85167465Smpextern int tw_bind_next (struct Strbuf *, 86167465Smp struct Strbuf *, int *); 87167465Smpextern int tw_limit_next (struct Strbuf *, 88167465Smp struct Strbuf *, int *); 89167465Smpextern int tw_sig_next (struct Strbuf *, 90167465Smp struct Strbuf *, int *); 91167465Smpextern int tw_job_next (struct Strbuf *, 92167465Smp struct Strbuf *, int *); 93167465Smpextern int tw_grpname_next (struct Strbuf *, 94167465Smp struct Strbuf *, int *); 95167465Smpextern void tw_dir_end (void); 96167465Smpextern void tw_cmd_free (void); 97167465Smpextern void tw_logname_end (void); 98167465Smpextern void tw_grpname_end (void); 99167465Smpextern void tw_item_add (const struct Strbuf *); 100167465Smpextern Char **tw_item_get (void); 101167465Smpextern void tw_item_free (void); 102167465Smpextern Char *tw_item_find (Char *); 10359243Sobrien 10459243Sobrien/* 10559243Sobrien * tw.spell.c 10659243Sobrien */ 107167465Smpextern int spell_me (struct Strbuf *, int, Char *, 108167465Smp eChar); 109167465Smpextern int spdir (struct Strbuf *, const Char *, 110167465Smp const Char *, Char *); 111167465Smpextern int spdist (const Char *, const Char *); 11259243Sobrien 11359243Sobrien/* 11459243Sobrien * tw.comp.c 11559243Sobrien */ 116167465Smpextern void docomplete (Char **, struct command *); 117167465Smpextern void douncomplete (Char **, struct command *); 118167465Smpextern int tw_complete (const Char *, Char **, 119167465Smp Char **, int, eChar *); 12059243Sobrien#ifdef COLOR_LS_F 12159243Sobrien/* 12259243Sobrien * tw.color.c 12359243Sobrien */ 124167465Smpextern void set_color_context (void); 125167465Smpextern void print_with_color (const Char *, size_t, Char); 126167465Smpextern void parseLS_COLORS (const Char *); 127316957Sdchaginextern void parseLSCOLORS (const Char *); 12859243Sobrien#endif /* COLOR_LS_F */ 12959243Sobrien 13059243Sobrien#endif /* _h_tw_decls */ 131