tw.decls.h revision 59243
1168404Spjd/* $Header: /src/pub/tcsh/tw.decls.h,v 3.16 1998/06/27 12:27:44 christos Exp $ */
2168404Spjd/*
3168404Spjd * tw.decls.h: Tenex external declarations
4168404Spjd */
5168404Spjd/*-
6168404Spjd * Copyright (c) 1980, 1991 The Regents of the University of California.
7168404Spjd * All rights reserved.
8168404Spjd *
9168404Spjd * Redistribution and use in source and binary forms, with or without
10168404Spjd * modification, are permitted provided that the following conditions
11168404Spjd * are met:
12168404Spjd * 1. Redistributions of source code must retain the above copyright
13168404Spjd *    notice, this list of conditions and the following disclaimer.
14168404Spjd * 2. Redistributions in binary form must reproduce the above copyright
15168404Spjd *    notice, this list of conditions and the following disclaimer in the
16168404Spjd *    documentation and/or other materials provided with the distribution.
17168404Spjd * 3. All advertising materials mentioning features or use of this software
18168404Spjd *    must display the following acknowledgement:
19168404Spjd *	This product includes software developed by the University of
20168404Spjd *	California, Berkeley and its contributors.
21168404Spjd * 4. Neither the name of the University nor the names of its contributors
22168404Spjd *    may be used to endorse or promote products derived from this software
23168404Spjd *    without specific prior written permission.
24168404Spjd *
25168404Spjd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26168404Spjd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27168404Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28168404Spjd * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29168404Spjd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30168404Spjd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31168404Spjd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32168404Spjd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33168404Spjd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34168404Spjd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35168404Spjd * SUCH DAMAGE.
36168404Spjd */
37168404Spjd#ifndef _h_tw_decls
38168404Spjd#define _h_tw_decls
39168404Spjd
40168404Spjd/*
41168404Spjd * tw.help.c
42168404Spjd */
43168404Spjdextern	void		  do_help		__P((Char *));
44168404Spjd
45168404Spjd/*
46168404Spjd * tw.parse.c
47168404Spjd */
48168404Spjdextern	 Char		 *dollar		__P((Char *, const Char *));
49168404Spjdextern	 int		  tenematch		__P((Char *, int, COMMAND));
50168404Spjdextern	 int		  t_search		__P((Char *, Char *, COMMAND,
51168404Spjd						     int, int, int, Char *,
52168404Spjd						     int));
53extern	 int		  starting_a_command	__P((Char *, Char *));
54extern	 void		  copyn			__P((Char *, Char *, int));
55extern	 void		  catn			__P((Char *, Char *, int));
56extern	 int		  fcompare		__P((Char **, Char **));
57extern	 void		  print_by_column	__P((Char *, Char *[], int,
58						     int));
59extern	 int		  StrQcmp		__P((Char *, Char *));
60extern	 Char		 *tgetenv		__P((Char *));
61
62/*
63 * tw.init.c
64 */
65extern	 void		  tw_alias_start	__P((DIR *, Char *));
66extern	 void		  tw_cmd_start		__P((DIR *, Char *));
67extern	 void		  tw_logname_start	__P((DIR *, Char *));
68extern	 void		  tw_var_start		__P((DIR *, Char *));
69extern	 void		  tw_complete_start	__P((DIR *, Char *));
70extern	 void		  tw_file_start		__P((DIR *, Char *));
71extern	 void		  tw_vl_start		__P((DIR *, Char *));
72extern	 void		  tw_wl_start		__P((DIR *, Char *));
73extern	 void		  tw_bind_start		__P((DIR *, Char *));
74extern	 void		  tw_limit_start	__P((DIR *, Char *));
75extern	 void		  tw_sig_start		__P((DIR *, Char *));
76extern	 void		  tw_job_start		__P((DIR *, Char *));
77extern	 void		  tw_grpname_start	__P((DIR *, Char *));
78extern	 Char		 *tw_cmd_next		__P((Char *, int *));
79extern	 Char		 *tw_logname_next	__P((Char *, int *));
80extern	 Char		 *tw_shvar_next		__P((Char *, int *));
81extern	 Char		 *tw_envvar_next	__P((Char *, int *));
82extern	 Char		 *tw_var_next		__P((Char *, int *));
83extern	 Char		 *tw_file_next		__P((Char *, int *));
84extern	 Char		 *tw_wl_next		__P((Char *, int *));
85extern	 Char		 *tw_bind_next		__P((Char *, int *));
86extern	 Char		 *tw_limit_next		__P((Char *, int *));
87extern	 Char		 *tw_sig_next		__P((Char *, int *));
88extern	 Char		 *tw_job_next		__P((Char *, int *));
89extern	 Char		 *tw_grpname_next	__P((Char *, int *));
90extern	 void		  tw_dir_end		__P((void));
91extern	 void		  tw_cmd_free		__P((void));
92extern	 void		  tw_logname_end	__P((void));
93extern	 void		  tw_grpname_end	__P((void));
94extern	 Char		 *tw_item_add		__P((int));
95extern	 Char	        **tw_item_get		__P((void));
96extern	 void		  tw_item_free		__P((void));
97extern	 Char		 *tw_item_find		__P((Char *));
98
99/*
100 * tw.spell.c
101 */
102extern	 int		  spell_me		__P((Char *, int, int,
103						     Char *, int));
104extern	 int		  spdir			__P((Char *, Char *, Char *,
105						     Char *));
106extern	 int		  spdist		__P((Char *, Char *));
107
108/*
109 * tw.comp.c
110 */
111extern	 void		  docomplete		__P((Char **,
112						     struct command *));
113extern	 void		  douncomplete		__P((Char **,
114						     struct command *));
115extern	 int		  tw_complete		__P((Char *, Char **,
116						     Char **, int, int *));
117#ifdef COLOR_LS_F
118/*
119 * tw.color.c
120 */
121extern	 void		  set_color_context	__P((void));
122extern	 void		  print_with_color	__P((Char *, size_t, int));
123extern	 void		  parseLS_COLORS	__P((Char *));
124#endif /* COLOR_LS_F */
125
126#endif /* _h_tw_decls */
127