l_debug() added
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Thu, 12 Jan 1984 09:28:40 +0000 (01:28 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Thu, 12 Jan 1984 09:28:40 +0000 (01:28 -0800)
SCCS-vsn: usr.bin/window/lcmd.c 3.9
SCCS-vsn: usr.bin/window/lcmd1.c 3.12

usr/src/usr.bin/window/lcmd.c
usr/src/usr.bin/window/lcmd1.c

index ce74dd3..9e8d1ad 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)lcmd.c      3.8 83/12/06";
+static char *sccsid = "@(#)lcmd.c      3.9 84/01/11";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -9,6 +9,7 @@ static  char *sccsid = "@(#)lcmd.c      3.8 83/12/06";
 int l_buffer();
 int l_close();
 int l_cursormodes();
 int l_buffer();
 int l_close();
 int l_cursormodes();
+int l_debug();
 int l_escape();
 int l_label();
 int l_select();
 int l_escape();
 int l_label();
 int l_select();
@@ -20,6 +21,7 @@ int l_write();
 struct lcmd_arg arg_buffer[];
 struct lcmd_arg arg_close[];
 struct lcmd_arg arg_cursormodes[];
 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_label[];
 struct lcmd_arg arg_select[];
 struct lcmd_arg arg_escape[];
 struct lcmd_arg arg_label[];
 struct lcmd_arg arg_select[];
@@ -33,6 +35,7 @@ struct lcmd_tab lcmd_tab[] = {
        "buffer",       1,      l_buffer,       arg_buffer,
        "close",        2,      l_close,        arg_close,
        "cursormodes",  2,      l_cursormodes,  arg_cursormodes,
        "buffer",       1,      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,
        "label",        1,      l_label,        arg_label,
        "select",       2,      l_select,       arg_select,
        "escape",       1,      l_escape,       arg_escape,
        "label",        1,      l_label,        arg_label,
        "select",       2,      l_select,       arg_select,
index d3d236e..91b1de7 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)lcmd1.c     3.11 83/12/09";
+static char *sccsid = "@(#)lcmd1.c     3.12 84/01/11";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -71,6 +71,19 @@ struct value *v;
        setselwin(w);
 }
 
        setselwin(w);
 }
 
+struct lcmd_arg arg_debug[] = {
+       { "flag",       1,      ARG_ANY },
+       { 0,            0,      0 }
+};
+
+l_debug(v)
+struct value *v;
+{
+       v->v_type = V_NUM;
+       v->v_num = debug;
+       debug = vtobool(&arg_debug[0].arg_val, 1, debug);
+}
+
 struct lcmd_arg arg_escape[] = {
        { "escapec",    1,      ARG_NUM },
        { 0,            0,      0 }
 struct lcmd_arg arg_escape[] = {
        { "escapec",    1,      ARG_NUM },
        { 0,            0,      0 }