static char *sccsid
= "@(#)lcmd.c 3.15 84/04/05";
struct lcmd_arg arg_buffer
[];
struct lcmd_arg arg_close
[];
struct lcmd_arg arg_cursormodes
[];
struct lcmd_arg arg_debug
[];
struct lcmd_arg arg_escape
[];
struct lcmd_arg arg_foreground
[];
struct lcmd_arg arg_iostat
[];
struct lcmd_arg arg_label
[];
struct lcmd_arg arg_select
[];
struct lcmd_arg arg_source
[];
struct lcmd_arg arg_terse
[];
struct lcmd_arg arg_time
[];
struct lcmd_arg arg_unset
[];
struct lcmd_arg arg_window
[];
struct lcmd_arg arg_write
[];
struct lcmd_tab lcmd_tab
[] = {
"%", 1, l_select
, arg_select
,
"buffer", 2, l_buffer
, arg_buffer
,
"close", 2, l_close
, arg_close
,
"cursormodes", 2, l_cursormodes
, arg_cursormodes
,
"debug", 1, l_debug
, arg_debug
,
"escape", 1, l_escape
, arg_escape
,
"foreground", 1, l_foreground
, arg_foreground
,
"iostat", 1, l_iostat
, arg_iostat
,
"label", 1, l_label
, arg_label
,
"select", 2, l_select
, arg_select
,
"source", 2, l_source
, arg_source
,
"terse", 2, l_terse
, arg_terse
,
"time", 2, l_time
, arg_time
,
"unset", 1, l_unset
, arg_unset
,
"window", 2, l_window
, arg_window
,
"write", 2, l_write
, arg_write
,
register struct lcmd_tab
*p
;
for (p
= lcmd_tab
; p
->lc_name
!= 0; p
++)
if (str_match(name
, p
->lc_name
, p
->lc_minlen
))
if (cx_beginfile(filename
) < 0)
if (cx_beginbuf(buffer
) < 0)