cvs server: Diffing . Index: actions.c =================================================================== RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v retrieving revision 1.185 diff -u -r1.185 actions.c --- actions.c 18 Nov 2003 05:06:35 -0000 1.185 +++ actions.c 23 Nov 2003 12:14:10 -0000 @@ -41,6 +41,7 @@ {"curframe", cmd_curframe, arg_VOID}, {"delete", cmd_delete, arg_VOID}, {"echo", cmd_echo, arg_STRING}, + {"print", cmd_print, arg_STRING}, {"escape", cmd_escape, arg_STRING}, {"exec", cmd_exec, arg_STRING}, {"focus", cmd_next_frame, arg_VOID}, @@ -1166,13 +1167,9 @@ result = command (1, input); - /* Gobble the result. */ - if (result) - free (result); - free (input); - return NULL; + return result; } struct list_head * @@ -1562,6 +1559,17 @@ return NULL; } +char * +cmd_print (int interactive, char *data) +{ + /*Off because cmd_colon calls as int'=1.*/ + /* if (!interactive) */ + if (data) + return xstrdup(data); + else + return NULL; +} + static int read_split (const char *str, int max) { Index: actions.h =================================================================== RCS file: /cvsroot/ratpoison/ratpoison/src/actions.h,v retrieving revision 1.66 diff -u -r1.66 actions.h --- actions.h 2 Sep 2003 17:33:58 -0000 1.66 +++ actions.h 23 Nov 2003 12:14:10 -0000 @@ -110,6 +110,7 @@ char *cmd_prev (int interactive, char *data); char *cmd_prev_frame (int interactive, char *data); char *cmd_prevscreen (int interactive, char *data); +char *cmd_print (int interactive, char *data); char *cmd_quit(int interactive, char *data); char *cmd_redisplay (int interactive, char *data); char *cmd_remhook (int interactive, char *data);