version 1.20, 2012/06/25 14:27:25 |
version 1.21, 2012/07/10 11:53:01 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <ctype.h> |
#include <ctype.h> |
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
item = &ARRAY_ITEM(&data->list, i); |
item = &ARRAY_ITEM(&data->list, i); |
if (data->freefn != NULL && item->wcd != NULL) |
if (data->freefn != NULL && item->wcd != NULL) |
data->freefn(item->wcd); |
data->freefn(item->wcd); |
xfree(item->name); |
free(item->name); |
} |
} |
ARRAY_FREE(&data->list); |
ARRAY_FREE(&data->list); |
|
|
screen_free(&data->screen); |
screen_free(&data->screen); |
xfree(data); |
free(data); |
} |
} |
|
|
void |
void |
|
|
if (cause != NULL) { |
if (cause != NULL) { |
*cause = toupper((u_char) *cause); |
*cause = toupper((u_char) *cause); |
status_message_set(cdata->client, "%s", cause); |
status_message_set(cdata->client, "%s", cause); |
xfree(cause); |
free(cause); |
} |
} |
return; |
return; |
} |
} |
|
|
|
|
xasprintf(&action_data, "%s:%d", s->name, wl->idx); |
xasprintf(&action_data, "%s:%d", s->name, wl->idx); |
wcd->command = cmd_template_replace(action, action_data, 1); |
wcd->command = cmd_template_replace(action, action_data, 1); |
xfree(action_data); |
free(action_data); |
|
|
wcd->idx = wl->idx; |
wcd->idx = wl->idx; |
wcd->ft_template = xstrdup(template); |
wcd->ft_template = xstrdup(template); |