Tidy up various bits of the paste code, make the data buffer char * and add

comments.
This commit is contained in:
Nicholas Marriott
2009-11-26 22:28:24 +00:00
parent ba5404d93e
commit 8cb410c63c
7 changed files with 55 additions and 24 deletions

6
tmux.h
View File

@ -884,7 +884,7 @@ struct layout_cell {
/* Paste buffer. */
struct paste_buffer {
char *data;
char *data;
size_t size;
};
ARRAY_DECL(paste_stack, struct paste_buffer *);
@ -1403,8 +1403,8 @@ struct paste_buffer *paste_get_top(struct paste_stack *);
struct paste_buffer *paste_get_index(struct paste_stack *, u_int);
int paste_free_top(struct paste_stack *);
int paste_free_index(struct paste_stack *, u_int);
void paste_add(struct paste_stack *, u_char *, size_t, u_int);
int paste_replace(struct paste_stack *, u_int, u_char *, size_t);
void paste_add(struct paste_stack *, char *, size_t, u_int);
int paste_replace(struct paste_stack *, u_int, char *, size_t);
/* clock.c */
extern const char clock_table[14][5][5];