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:
+3
-1
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user