projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4172d9
)
curl tool: make my_setopt ignore curl_easy_setopt result again.
author
Yang Tse
<yangsita@gmail.com>
Wed, 21 Sep 2011 02:28:46 +0000
(
04:28
+0200)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 21 Sep 2011 02:30:08 +0000
(
04:30
+0200)
Related code not ready yet for this kind of checks.
src/tool_setopt.h
patch
|
blob
|
history
diff --git
a/src/tool_setopt.h
b/src/tool_setopt.h
index
7a1b8c5
..
e75f328
100644
(file)
--- 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)