aboutsummaryrefslogtreecommitdiff
path: root/src/tool_setopt.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-21 04:28:46 +0200
committerYang Tse <yangsita@gmail.com>2011-09-21 04:30:08 +0200
commit28526ed6e080b5c74fde65fd24abb1324f742789 (patch)
tree765c353fd2a520ce1d4d8c816bdf0e24459b0455 /src/tool_setopt.h
parente4172d934da23083eb43660bf3300d77bf157bac (diff)
curl tool: make my_setopt ignore curl_easy_setopt result again.
Related code not ready yet for this kind of checks.
Diffstat (limited to 'src/tool_setopt.h')
-rw-r--r--src/tool_setopt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tool_setopt.h b/src/tool_setopt.h
index 7a1b8c591..e75f328f3 100644
--- a/src/tool_setopt.h
+++ b/src/tool_setopt.h
@@ -29,7 +29,7 @@ CURLcode tool_setopt(CURL *curl, bool str, struct Configurable *config,
/*
* Macros used in operate()
*/
-
+#if 0
#define my_setopt(x,y,z) do { \
res = tool_setopt(x, FALSE, config, #y, y, z); \
if(res) \
@@ -41,6 +41,10 @@ CURLcode tool_setopt(CURL *curl, bool str, struct Configurable *config,
if(res) \
goto quit_curl; \
} WHILE_FALSE
+#else
+#define my_setopt(x,y,z) tool_setopt(x, FALSE, config, #y, y, z)
+#define my_setopt_str(x,y,z) tool_setopt(x, TRUE, config, #y, y, z)
+#endif
#define res_setopt(x,y,z) tool_setopt(x, FALSE, config, #y, y, z)