special-vars: added flag PARSE_FLAG_ESCAPE_THEME to escape { and } chars

with % char. Used this with statusbar items - now for example "{error xxx}"
topic won't print it with error color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1564 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-26 15:33:07 +00:00 committed by cras
commit 8b733e0568
3 changed files with 27 additions and 8 deletions

View file

@ -6,6 +6,7 @@
#define PARSE_FLAG_GETNAME 0x01 /* return argument name instead of it's value */
#define PARSE_FLAG_ISSET_ANY 0x02 /* arg_used field specifies that at least one of the $variables was non-empty */
#define PARSE_FLAG_ESCAPE_VARS 0x04 /* if any arguments/variables contain % chars, escape them with another % */
#define PARSE_FLAG_ESCAPE_THEME 0x08 /* if any arguments/variables contain { or } chars, escape them with % */
typedef char* (*SPECIAL_HISTORY_FUNC)
(const char *text, void *item, int *free_ret);