mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
implement expando cache
- the expando values need to be stored now that the lines are reformattable, otherwise the old values are lost (and they depend on context only available at the time the line is initially printed) - the cache is collected from the special-vars evaluation code - the cache is controlled by the textbuffer-formats code, and stored in the text_buffer_format_rec
This commit is contained in:
parent
f95fc81130
commit
6b93d6e338
5 changed files with 155 additions and 22 deletions
|
|
@ -32,6 +32,11 @@ char *parse_special_string(const char *cmd, SERVER_REC *server, void *item,
|
|||
void eval_special_string(const char *cmd, const char *data,
|
||||
SERVER_REC *server, void *item);
|
||||
|
||||
void special_push_collector(GSList **list);
|
||||
void special_pop_collector(void);
|
||||
|
||||
void special_fill_cache(GSList *list);
|
||||
|
||||
void special_history_func_set(SPECIAL_HISTORY_FUNC func);
|
||||
|
||||
void special_vars_add_signals(const char *text,
|
||||
|
|
@ -41,4 +46,8 @@ void special_vars_remove_signals(const char *text,
|
|||
/* Returns [<signal id>, EXPANDO_ARG_xxx, <signal id>, ..., -1] */
|
||||
int *special_vars_get_signals(const char *text);
|
||||
|
||||
void special_vars_init(void);
|
||||
|
||||
void special_vars_deinit(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue