annotate info/tilde.h @ 3028:6d56646a2d1f

[project @ 1997-06-05 06:34:21 by jwe]
author jwe
date Thu, 05 Jun 1997 06:35:11 +0000
parents b043097d7e04
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2502
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
1 /* tilde.h: Externally available variables and function in libtilde.a. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
2
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
3 /* This file is part of GNU Info, a program for reading online documentation
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
4 stored in Info format.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
5
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
6 This file has appeared in prior works by the Free Software Foundation;
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
7 thus it carries copyright dates from 1988 through 1993.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
8
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
9 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993 Free Software
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
10 Foundation, Inc.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
11
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
12 This program is free software; you can redistribute it and/or modify
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
13 it under the terms of the GNU General Public License as published by
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
14 the Free Software Foundation; either version 2, or (at your option)
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
15 any later version.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
16
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
17 This program is distributed in the hope that it will be useful,
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
20 GNU General Public License for more details.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
21
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
22 You should have received a copy of the GNU General Public License
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
23 along with this program; if not, write to the Free Software
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
25
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
26 Written by Brian Fox (bfox@ai.mit.edu). */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
27
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
28 /* Function pointers can be declared as (Function *)foo. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
29 #if !defined (__FUNCTION_DEF)
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
30 # define __FUNCTION_DEF
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
31 typedef int Function ();
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
32 typedef void VFunction ();
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
33 typedef char *CFunction ();
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
34 #endif /* _FUNCTION_DEF */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
35
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
36 /* If non-null, this contains the address of a function to call if the
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
37 standard meaning for expanding a tilde fails. The function is called
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
38 with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
39 which is the expansion, or a NULL pointer if there is no expansion. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
40 extern CFunction *tilde_expansion_failure_hook;
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
41
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
42 /* When non-null, this is a NULL terminated array of strings which
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
43 are duplicates for a tilde prefix. Bash uses this to expand
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
44 `=~' and `:~'. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
45 extern char **tilde_additional_prefixes;
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
46
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
47 /* When non-null, this is a NULL terminated array of strings which match
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
48 the end of a username, instead of just "/". Bash sets this to
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
49 `:' and `=~'. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
50 extern char **tilde_additional_suffixes;
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
51
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
52 /* Return a new string which is the result of tilde expanding STRING. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
53 extern char *tilde_expand ();
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
54
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
55 /* Do the work of tilde expansion on FILENAME. FILENAME starts with a
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
56 tilde. If there is no expansion, call tilde_expansion_failure_hook. */
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
57 extern char *tilde_expand_word ();
b043097d7e04 [project @ 1996-11-13 03:41:37 by jwe]
jwe
parents:
diff changeset
58