tw.decls.h revision 59243
159243Sobrien/* $Header: /src/pub/tcsh/tw.decls.h,v 3.16 1998/06/27 12:27:44 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.
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 *));
4959243Sobrienextern	 int		  tenematch		__P((Char *, int, COMMAND));
5059243Sobrienextern	 int		  t_search		__P((Char *, Char *, COMMAND,
5159243Sobrien						     int, int, int, Char *,
5259243Sobrien						     int));
5359243Sobrienextern	 int		  starting_a_command	__P((Char *, Char *));
5459243Sobrienextern	 void		  copyn			__P((Char *, Char *, int));
5559243Sobrienextern	 void		  catn			__P((Char *, Char *, int));
5659243Sobrienextern	 int		  fcompare		__P((Char **, Char **));
5759243Sobrienextern	 void		  print_by_column	__P((Char *, Char *[], int,
5859243Sobrien						     int));
5959243Sobrienextern	 int		  StrQcmp		__P((Char *, Char *));
6059243Sobrienextern	 Char		 *tgetenv		__P((Char *));
6159243Sobrien
6259243Sobrien/*
6359243Sobrien * tw.init.c
6459243Sobrien */
6559243Sobrienextern	 void		  tw_alias_start	__P((DIR *, Char *));
6659243Sobrienextern	 void		  tw_cmd_start		__P((DIR *, Char *));
6759243Sobrienextern	 void		  tw_logname_start	__P((DIR *, Char *));
6859243Sobrienextern	 void		  tw_var_start		__P((DIR *, Char *));
6959243Sobrienextern	 void		  tw_complete_start	__P((DIR *, Char *));
7059243Sobrienextern	 void		  tw_file_start		__P((DIR *, Char *));
7159243Sobrienextern	 void		  tw_vl_start		__P((DIR *, Char *));
7259243Sobrienextern	 void		  tw_wl_start		__P((DIR *, Char *));
7359243Sobrienextern	 void		  tw_bind_start		__P((DIR *, Char *));
7459243Sobrienextern	 void		  tw_limit_start	__P((DIR *, Char *));
7559243Sobrienextern	 void		  tw_sig_start		__P((DIR *, Char *));
7659243Sobrienextern	 void		  tw_job_start		__P((DIR *, Char *));
7759243Sobrienextern	 void		  tw_grpname_start	__P((DIR *, Char *));
7859243Sobrienextern	 Char		 *tw_cmd_next		__P((Char *, int *));
7959243Sobrienextern	 Char		 *tw_logname_next	__P((Char *, int *));
8059243Sobrienextern	 Char		 *tw_shvar_next		__P((Char *, int *));
8159243Sobrienextern	 Char		 *tw_envvar_next	__P((Char *, int *));
8259243Sobrienextern	 Char		 *tw_var_next		__P((Char *, int *));
8359243Sobrienextern	 Char		 *tw_file_next		__P((Char *, int *));
8459243Sobrienextern	 Char		 *tw_wl_next		__P((Char *, int *));
8559243Sobrienextern	 Char		 *tw_bind_next		__P((Char *, int *));
8659243Sobrienextern	 Char		 *tw_limit_next		__P((Char *, int *));
8759243Sobrienextern	 Char		 *tw_sig_next		__P((Char *, int *));
8859243Sobrienextern	 Char		 *tw_job_next		__P((Char *, int *));
8959243Sobrienextern	 Char		 *tw_grpname_next	__P((Char *, int *));
9059243Sobrienextern	 void		  tw_dir_end		__P((void));
9159243Sobrienextern	 void		  tw_cmd_free		__P((void));
9259243Sobrienextern	 void		  tw_logname_end	__P((void));
9359243Sobrienextern	 void		  tw_grpname_end	__P((void));
9459243Sobrienextern	 Char		 *tw_item_add		__P((int));
9559243Sobrienextern	 Char	        **tw_item_get		__P((void));
9659243Sobrienextern	 void		  tw_item_free		__P((void));
9759243Sobrienextern	 Char		 *tw_item_find		__P((Char *));
9859243Sobrien
9959243Sobrien/*
10059243Sobrien * tw.spell.c
10159243Sobrien */
10259243Sobrienextern	 int		  spell_me		__P((Char *, int, int,
10359243Sobrien						     Char *, int));
10459243Sobrienextern	 int		  spdir			__P((Char *, Char *, Char *,
10559243Sobrien						     Char *));
10659243Sobrienextern	 int		  spdist		__P((Char *, Char *));
10759243Sobrien
10859243Sobrien/*
10959243Sobrien * tw.comp.c
11059243Sobrien */
11159243Sobrienextern	 void		  docomplete		__P((Char **,
11259243Sobrien						     struct command *));
11359243Sobrienextern	 void		  douncomplete		__P((Char **,
11459243Sobrien						     struct command *));
11559243Sobrienextern	 int		  tw_complete		__P((Char *, Char **,
11659243Sobrien						     Char **, int, int *));
11759243Sobrien#ifdef COLOR_LS_F
11859243Sobrien/*
11959243Sobrien * tw.color.c
12059243Sobrien */
12159243Sobrienextern	 void		  set_color_context	__P((void));
12259243Sobrienextern	 void		  print_with_color	__P((Char *, size_t, int));
12359243Sobrienextern	 void		  parseLS_COLORS	__P((Char *));
12459243Sobrien#endif /* COLOR_LS_F */
12559243Sobrien
12659243Sobrien#endif /* _h_tw_decls */
127