|
1 /* |
|
2 * hashtable.h - header file for hash table handling code |
|
3 * |
|
4 * This file is part of zsh, the Z shell. |
|
5 * |
|
6 * Copyright (c) 1992-1997 Paul Falstad |
|
7 * All rights reserved. |
|
8 * |
|
9 * Permission is hereby granted, without written agreement and without |
|
10 * license or royalty fees, to use, copy, modify, and distribute this |
|
11 * software and to distribute modified versions of this software for any |
|
12 * purpose, provided that the above copyright notice and the following |
|
13 * two paragraphs appear in all copies of this software. |
|
14 * |
|
15 * In no event shall Paul Falstad or the Zsh Development Group be liable |
|
16 * to any party for direct, indirect, special, incidental, or consequential |
|
17 * damages arising out of the use of this software and its documentation, |
|
18 * even if Paul Falstad and the Zsh Development Group have been advised of |
|
19 * the possibility of such damage. |
|
20 * |
|
21 * Paul Falstad and the Zsh Development Group specifically disclaim any |
|
22 * warranties, including, but not limited to, the implied warranties of |
|
23 * merchantability and fitness for a particular purpose. The software |
|
24 * provided hereunder is on an "as is" basis, and Paul Falstad and the |
|
25 * Zsh Development Group have no obligation to provide maintenance, |
|
26 * support, updates, enhancements, or modifications. |
|
27 * |
|
28 */ |
|
29 |
|
30 /* Builtin function numbers; used by handler functions that handle more * |
|
31 * than one builtin. Note that builtins such as compctl, that are not * |
|
32 * overloaded, don't get a number. */ |
|
33 |
|
34 #define BIN_TYPESET 0 |
|
35 #define BIN_BG 1 |
|
36 #define BIN_FG 2 |
|
37 #define BIN_JOBS 3 |
|
38 #define BIN_WAIT 4 |
|
39 #define BIN_DISOWN 5 |
|
40 #define BIN_BREAK 6 |
|
41 #define BIN_CONTINUE 7 |
|
42 #define BIN_EXIT 8 |
|
43 #define BIN_RETURN 9 |
|
44 #define BIN_CD 10 |
|
45 #define BIN_POPD 11 |
|
46 #define BIN_PUSHD 12 |
|
47 #define BIN_PRINT 13 |
|
48 #define BIN_EVAL 14 |
|
49 #define BIN_SCHED 15 |
|
50 #define BIN_FC 16 |
|
51 #define BIN_R 17 |
|
52 #define BIN_PUSHLINE 18 |
|
53 #define BIN_LOGOUT 19 |
|
54 #define BIN_TEST 20 |
|
55 #define BIN_BRACKET 21 |
|
56 #define BIN_EXPORT 22 |
|
57 #define BIN_ECHO 23 |
|
58 #define BIN_DISABLE 24 |
|
59 #define BIN_ENABLE 25 |
|
60 #define BIN_PRINTF 26 |
|
61 #define BIN_COMMAND 27 |
|
62 |
|
63 /* These currently depend on being 0 and 1. */ |
|
64 #define BIN_SETOPT 0 |
|
65 #define BIN_UNSETOPT 1 |
|
66 |
|
67 #define BIN_LN 28 |
|
68 #define BIN_MV 29 |
|
69 |
|
70 #ifdef HAVE_LSTAT |
|
71 # define LN_OPTS "dfis" |
|
72 #else |
|
73 # define LN_OPTS "dfi" |
|
74 #endif |
|
75 |
|
76 |