version 1.1, 2012/06/18 13:16:42 |
version 1.2, 2012/07/10 11:53:01 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <event.h> |
#include <event.h> |
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
if (cmd_string_parse(line, &cmdlist, &cause) != 0) { |
if (cmd_string_parse(line, &cmdlist, &cause) != 0) { |
control_write(c, "%%error in line \"%s\": %s", line, |
control_write(c, "%%error in line \"%s\": %s", line, |
cause); |
cause); |
xfree(cause); |
free(cause); |
} else { |
} else { |
cmd_list_exec(cmdlist, &ctx); |
cmd_list_exec(cmdlist, &ctx); |
cmd_list_free(cmdlist); |
cmd_list_free(cmdlist); |
} |
} |
|
|
xfree(line); |
free(line); |
} |
} |
} |
} |