1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

core: move default prefix/suffix for evaluation in wee-eval.h

This commit is contained in:
Sébastien Helleu
2014-10-12 18:22:02 +02:00
parent 45a0bfe1b3
commit 9d849db85a
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -823,7 +823,9 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
{
int condition, rc, pointers_allocated;
char *value;
const char *prefix, *suffix, *default_prefix = "${", *default_suffix = "}";
const char *prefix, *suffix;
const char *default_prefix = EVAL_DEFAULT_PREFIX;
const char *default_suffix = EVAL_DEFAULT_SUFFIX;
const char *ptr_value;
struct t_gui_window *window;
+5 -2
View File
@@ -20,8 +20,11 @@
#ifndef WEECHAT_EVAL_H
#define WEECHAT_EVAL_H 1
#define EVAL_STR_FALSE "0"
#define EVAL_STR_TRUE "1"
#define EVAL_STR_FALSE "0"
#define EVAL_STR_TRUE "1"
#define EVAL_DEFAULT_PREFIX "${"
#define EVAL_DEFAULT_SUFFIX "}"
struct t_hashtable;