]> granicus.if.org Git - curl/commit
Generate lists and use symbols in --libcurl code output.
authorColin Hogben <curl@pythontech.co.uk>
Thu, 23 Feb 2012 09:43:37 +0000 (09:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Feb 2012 21:32:57 +0000 (22:32 +0100)
commit995424298052fa02ac82a584ee4247939503f24a
treebefbe3a48f57edbdaf7fe33a5ec69d371a7c49c1
parent2f1ad7d6e2192e64ca6a5187ecf44a80b0425389
Generate lists and use symbols in --libcurl code output.

This patch improves the output of curl's --libcurl option by
generating code which builds curl_httppost and curl_slist lists, and
uses symbolic names for enum and flag values.  Variants of the
my_setopt macro in tool_setopt.h are added in order to pass extra type
information to the code-generation step in tool_setopt.c.

If curl is configured with --disable-libcurl-option then the macros
call curl_easy_setopt directly.
src/tool_easysrc.c
src/tool_easysrc.h
src/tool_operate.c
src/tool_setopt.c
src/tool_setopt.h