redo contrib notice
[unix-history] / usr / src / usr.bin / window / lcmd.h
CommitLineData
39dc458a 1/*
46e9ea25
KB
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved.
4 *
87f529ec 5 * %sccs.include.redist.c%
46e9ea25 6 *
87f529ec 7 * @(#)lcmd.h 3.8 (Berkeley) %G%
39dc458a
EW
8 */
9
4222244b
EW
10#define LCMD_NARG 20 /* maximum number of arguments */
11
39dc458a
EW
12struct lcmd_tab {
13 char *lc_name;
14 int lc_minlen;
15 int (*lc_func)();
16 struct lcmd_arg *lc_arg;
17};
18
19struct lcmd_arg {
20 char *arg_name;
21 int arg_minlen;
855d0f8f 22 int arg_flags;
39dc458a 23};
39dc458a 24
855d0f8f
EW
25 /* arg_flags bits */
26#define ARG_TYPE 0x0f /* type of arg */
27#define ARG_ANY 0x00 /* any type */
28#define ARG_NUM 0x01 /* must be a number */
29#define ARG_STR 0x02 /* must be a string */
30#define ARG_LIST 0x10 /* this arg can be a list */
39dc458a
EW
31
32struct lcmd_tab *lcmd_lookup();