diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-05 23:26:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-05 23:26:59 +0000 |
commit | 784d47042dc86484369a8c40ff75751e8d4f57ab (patch) | |
tree | 72f4823247da8c5ad6a6c6691160f370a8bc5dca /bin/ksh/table.c | |
parent | fcd04f255224d389c49a2eb538271cabb6693129 (diff) |
Remove EXTERN from table.h and put the definitions in table.c, from
Michael McConville.
Diffstat (limited to 'bin/ksh/table.c')
-rw-r--r-- | bin/ksh/table.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/ksh/table.c b/bin/ksh/table.c index cb27bbf5ffe..2af57b41d19 100644 --- a/bin/ksh/table.c +++ b/bin/ksh/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.18 2015/09/18 07:28:24 nicm Exp $ */ +/* $OpenBSD: table.c,v 1.19 2015/10/05 23:26:58 nicm Exp $ */ /* * dynamic hashed associative table for commands and variables @@ -8,6 +8,19 @@ #define INIT_TBLS 8 /* initial table size (power of 2) */ +struct table taliases; /* tracked aliases */ +struct table builtins; /* built-in commands */ +struct table aliases; /* aliases */ +struct table keywords; /* keywords */ +struct table homedirs; /* homedir() cache */ + +char *path; /* copy of either PATH or def_path */ +const char *def_path; /* path to use if PATH not set */ +char *tmpdir; /* TMPDIR value */ +const char *prompt; +int cur_prompt; /* PS1 or PS2 */ +int current_lineno; /* LINENO value */ + static void texpand(struct table *, int); static int tnamecmp(const void *, const void *); |