[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: do not use macros where a functi
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: do not use macros where a function does the job better |
Date: |
Sat, 18 Jan 2020 18:33:21 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new d53eca89 do not use macros where a function does the job better
d53eca89 is described below
commit d53eca894011f31b698a13cf41d31e2d19c7e427
Author: Florian Dold <address@hidden>
AuthorDate: Sat Jan 18 18:33:09 2020 +0100
do not use macros where a function does the job better
---
src/lib/test_exchange_api_twisted.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/lib/test_exchange_api_twisted.c
b/src/lib/test_exchange_api_twisted.c
index c6a0a52a..1725b159 100644
--- a/src/lib/test_exchange_api_twisted.c
+++ b/src/lib/test_exchange_api_twisted.c
@@ -69,8 +69,12 @@ static struct GNUNET_OS_Process *twisterd;
*
* @param label label to use for the command.
*/
-#define CMD_EXEC_WIREWATCH(label) \
- TALER_TESTING_cmd_exec_wirewatch (label, CONFIG_FILE)
+static struct TALER_TESTING_Command
+CMD_EXEC_WIREWATCH (char *label)
+{
+ return TALER_TESTING_cmd_exec_wirewatch (label, CONFIG_FILE);
+}
+
/**
* Execute the taler-exchange-aggregator command with
@@ -78,8 +82,12 @@ static struct GNUNET_OS_Process *twisterd;
*
* @param label label to use for the command.
*/
-#define CMD_EXEC_AGGREGATOR(label) \
- TALER_TESTING_cmd_exec_aggregator (label, CONFIG_FILE)
+static struct TALER_TESTING_Command
+CMD_EXEC_AGGREGATOR (char *label)
+{
+ return TALER_TESTING_cmd_exec_aggregator (label, CONFIG_FILE);
+}
+
/**
* Run wire transfer of funds from some user's account to the
@@ -89,10 +97,14 @@ static struct GNUNET_OS_Process *twisterd;
* @param amount amount to transfer, i.e. "EUR:1"
* @param url exchange_url
*/
-#define CMD_TRANSFER_TO_EXCHANGE(label,amount) \
- TALER_TESTING_cmd_admin_add_incoming (label, amount, \
- &bc.exchange_auth, \
- bc.user42_payto)
+static struct TALER_TESTING_Command
+CMD_TRANSFER_TO_EXCHANGE (char *label, char *amount)
+{
+ return TALER_TESTING_cmd_admin_add_incoming (label,
+ amount,
+ &bc.exchange_auth,
+ bc.user42_payto);
+}
/**
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: do not use macros where a function does the job better,
gnunet <=