summaryrefslogtreecommitdiff
path: root/src/tool_easysrc.c
Commit message (Collapse)AuthorAgeFilesLines
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-8/+8
|
* mime: use in curl cli tool instead of form API.Patrick Monnerat2017-09-021-2/+2
| | | | | | Extended -F option syntax to support multipart mail messages. -F keyword headers= added to include custom headers in parts. Documentation upgraded.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-2/+2
|
* tool: Generate easysrc with last cache linked-listDaniel Hwang2015-10-181-28/+37
| | | | | | | | | | Using a last cache linked-list improves the performance of easysrc generation. Bug: https://github.com/bagder/curl/issues/444 Ref: https://github.com/bagder/curl/issues/429 Closes #452
* tool: remove redundant libcurl checkDaniel Hwang2015-09-221-41/+39
| | | | | | | | The easysrc generation is run only when --libcurl is initialized. Ref: https://github.com/bagder/curl/issues/429 Closes #448
* curl_setup: Add macros for FOPEN_READTEXT, FOPEN_WRITETEXTJay Satiro2015-06-011-1/+1
| | | | | | | | | | | | | | | | | - Change fopen calls to use FOPEN_READTEXT instead of "r" or "rt" - Change fopen calls to use FOPEN_WRITETEXT instead of "w" or "wt" This change is to explicitly specify when we need to read/write text. Unfortunately 't' is not part of POSIX fopen so we can't specify it directly. Instead we now have FOPEN_READTEXT, FOPEN_WRITETEXT. Prior to this change we had an issue on Windows if an application that uses libcurl overrides the default file mode to binary. The default file mode in Windows is normally text mode (translation mode) and that's what libcurl expects. Bug: https://github.com/bagder/curl/pull/258#issuecomment-107093055 Reported-by: Orgad Shaneh
* tool: Updated the warnf() function to use the GlobalConfig structureSteve Holme2015-02-271-2/+2
| | | | | | As the 'error' and 'mute' options are now part of the GlobalConfig, rather than per Operation, updated the warnf() function to use this structure rather than the OperationConfig.
* tool: Fixed libcurl source output for multiple operationsSteve Holme2014-03-021-1/+3
| | | | | | | | | | Correctly output libcurl source code that includes multiply operations as specified by --next. Note that each operation evaluates to a single curl_easy_perform() in source code form. Also note that the output could be optimised a little so global config options are only output once rather than per operation as is presently the case.
* tool: Moved --libcurl to the global configSteve Holme2014-03-011-2/+2
|
* tool_cfgable: Renamed Configurable structure to OperationConfigSteve Holme2014-02-231-2/+2
| | | | | To allow for the addition of a global config structure and prevent confusion between the two.
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-281-1/+1
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* tool_easysrc.c: Test pointers against NULLDavid Blaikie2012-09-061-3/+3
| | | | | | While validating a new Clang diagnostic (-Wnon-literal-null-conversion - yes, the name isn't quite correct in this case, but it suffices) I found a few violations of it in Curl.
* curl tool: make curl.h first header included in tool_setup.hYang Tse2012-04-081-2/+0
|
* curl tool: use configuration files from lib directoryYang Tse2012-04-061-1/+1
| | | | | | | | | | | Configuration files such as curl_config.h and all config-*.h no longer exist nor are generated/copied into 'src' directory, now these only exist in 'lib' directory from where curl tool sources uses them. Additionally old src/setup.h has been refactored into src/tool_setup.h which now pulls lib/setup.h The possibility of a makefile needing an include path adjustment exists.
* tool_easysrc.c: fix --libcurl option output file text translation modeYang Tse2012-03-181-1/+1
| | | | Use fopen() with "w" mode instead of "wt" to fix cygwin builds.
* fix several compiler warningsYang Tse2012-03-161-1/+1
|
* Generate lists and use symbols in --libcurl code output.Colin Hogben2012-02-231-24/+138
| | | | | | | | | | | 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.
* configure: add option disable --libcurl outputColin Hogben2012-02-131-1/+4
|
* curl tool: reviewed code moved to tool_*.[ch] filesYang Tse2011-09-211-0/+112
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result. Fixed some OOM handling issues.