Daniel Stenberg
1c3e8bbfed
checksrc: warn for assignments within if() expressions
...
... they're already frowned upon in our source code style guide, this
now enforces the rule harder.
2016-12-14 01:29:44 +01:00
Daniel Stenberg
b228d2952b
checksrc: stricter no-space-before-paren enforcement
...
In order to make the code style more uniform everywhere
2016-12-13 23:39:11 +01:00
Daniel Stenberg
6832c1d4b2
checksrc: move open braces to comply with function declaration style
2016-11-24 23:58:22 +01:00
Daniel Stenberg
8657c268e1
checksrc: white space edits to comply to stricter checksrc
2016-11-24 23:58:22 +01:00
Daniel Stenberg
dbadaebfc4
checksrc: code style: use 'char *name' style
2016-11-24 23:58:22 +01:00
Daniel Stenberg
dfcdaaba37
examples/fileupload.c: fclose the file as well
2016-11-08 23:00:43 +01:00
Daniel Stenberg
27302abb94
s/cURL/curl
...
We're mostly saying just "curl" in lower case these days so here's a big
cleanup to adapt to this reality. A few instances are left as the
project could still formally be considered called cURL.
2016-11-07 10:36:23 +01:00
Daniel Stenberg
c8e6e60b40
docs: shorten and simplify the top comment in multi-uv.c
...
and change URL to use https
2016-11-03 12:44:38 +01:00
Andrei Sedoi
82b6fd4112
docs: handle CURL_POLL_INOUT in multi-uv example
2016-11-03 12:32:14 +01:00
Andrei Sedoi
e6882ce484
docs: multi-uv: don't use CURLMsg after cleanup
2016-11-03 12:32:14 +01:00
Andrei Sedoi
b1aeed302d
docs: remove unused variables in multi-uv example
2016-11-03 12:32:14 +01:00
Andrei Sedoi
50ef91b59a
docs: fix req->data in multi-uv example
...
Closes #1088
2016-10-27 09:14:24 +02:00
Jay Satiro
45c1c54c42
examples/imap-append: Set size of data to be uploaded
...
Prior to this commit this example failed with error
'Cannot APPEND with unknown input file size'.
Bug: https://github.com/curl/curl/issues/1008
Reported-by: lukaszgn@users.noreply.github.com
Closes https://github.com/curl/curl/pull/1011
2016-09-18 02:19:17 -04:00
Daniel Stenberg
a07727005a
make/checksrc: use $srcdir, not $top_srcdir
2016-04-19 08:56:06 +02:00
Daniel Stenberg
ab493af731
checksrc/makefile.am: use $top_srcdir to find source files
...
... to properly support out of source tree builds.
2016-04-18 14:58:11 +02:00
Daniel Stenberg
6ddab23fb1
docs/examples: remove spurious white spaces all over
...
... to please the new, slightly picker, checksrc.pl
2016-04-03 22:52:34 +02:00
Daniel Stenberg
530234b325
curlx.c: use more curl style code
2016-03-06 16:54:58 +01:00
Daniel Stenberg
435f6bcc86
examples/make: add 'checksrc' target
2016-02-17 15:01:38 +01:00
Daniel Stenberg
e8748bc1d7
10-at-a-time: typecast the argument passed to sleep()
2016-02-17 15:01:21 +01:00
Daniel Stenberg
e624714cad
externalsocket.c: fix compiler warning for fwrite return type
2016-02-17 15:00:54 +01:00
Daniel Stenberg
32e38b8f42
anyauthput.c: fix compiler warnings
2016-02-17 15:00:34 +01:00
Daniel Stenberg
0c671a1501
simplessl.c: warning: while with space
2016-02-17 15:00:18 +01:00
Daniel Stenberg
9ae7030cef
curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function
...
Reported-By: Gisle Vanem
2016-02-17 14:51:31 +01:00
Daniel Stenberg
d202fbcc00
examples: fix some compiler warnings
2016-02-11 10:21:09 +01:00
Daniel Stenberg
888e4b6821
simplessl.c: fix my breakage
2016-02-11 10:20:48 +01:00
Daniel Stenberg
3a6563d668
examples: adhere to curl code style
...
All plain C examples now (mostly) adhere to the curl code style. While
they are only examples, they had diverted so much and contained all
sorts of different mixed code styles by now. Having them use a unified
style helps users and readability. Also, as they get copy-and-pasted
widely by users, making sure they're clean and nice is a good idea.
573 checksrc warnings were addressed.
2016-02-11 09:44:45 +01:00
Daniel Stenberg
936d8f07df
examples/cookie_interface.c: add cleanup call
...
cleaning up handles is a good idea as we leak memory otherwise
Also, line wrapped before 80 columns.
2016-02-11 08:44:59 +01:00
Gisle Vanem
c71b6a2795
examples/asiohiper: Avoid function name collision on Windows
...
closesocket => close_socket
Winsock already has the former.
Bug: https://curl.haxx.se/mail/lib-2016-02/0016.html
2016-02-06 17:04:38 -05:00
Gisle Vanem
6f702ebaa2
examples/htmltitle: Use _stricmp on Windows
...
Bug: https://curl.haxx.se/mail/lib-2016-02/0017.html
2016-02-06 17:02:55 -05:00
Viktor Szakats
b4f595bde4
URLs: change more http to https
2016-02-02 22:29:47 -05:00
Daniel Stenberg
4af40b3646
URLs: change all http:// URLs to https://
2016-02-03 00:19:02 +01:00
Daniel Stenberg
e400a89b18
getredirect.c: fix variable name
...
Reported-by: Bernard Spil
2016-01-27 09:35:55 +01:00
Daniel Stenberg
06bf874bbc
examples/Makefile.inc: specify programs without .c!
2016-01-27 08:30:04 +01:00
Daniel Stenberg
1d15a509dd
progressfunc.c: spellfix description
2016-01-04 18:49:10 +01:00
Daniel Stenberg
a3b8a9e036
docs/examples/multi-app.c: fix bad desc formatting
2016-01-04 15:35:16 +01:00
Daniel Stenberg
2e503441ed
examples: added descriptions
2016-01-04 15:34:05 +01:00
Daniel Stenberg
e45059214c
example/simple.c: add description
2016-01-04 15:12:37 +01:00
Daniel Stenberg
1c9298ff1b
getredirect.c: a new example
2016-01-04 15:12:37 +01:00
Daniel Stenberg
a47137c4a5
docs/examples: gitignore some more built examples
2015-12-01 09:09:04 +01:00
Daniel Stenberg
99d17a5e2b
examples/README: cut out the incomplete list
...
... and add a generic explanation for them instead. Each example file
should contain its own description these days.
2015-11-25 10:49:22 +01:00
Steve Holme
06b288a72d
examples: Added website parse-able descriptions to the e-mail examples
2015-11-22 11:55:10 +00:00
Steve Holme
c90e348579
examples: Fixed compilation warnings
...
pop3-multi.c:96:5: warning: implicit declaration of function 'memset'
imap-multi.c:96:5: warning: implicit declaration of function 'memset'
http2-download.c:226:5: warning: implicit declaration of function 'memset'
http2-upload.c:290:5: warning: implicit declaration of function 'memset'
http2-upload.c:290:5: warning: implicit declaration of function 'memset'
2015-11-21 01:47:02 +00:00
Daniel Stenberg
5fecdc26f7
copyrights: update Gisle Vanem's email
2015-10-20 13:33:01 +02:00
rouzier
b1d55997e5
hiperfifo: fix the pointer passed to WRITEDATA
...
Closes https://github.com/bagder/curl/pull/471
2015-10-04 17:16:14 -04:00
Viktor Szakats
9ee40ce2ab
build: refer to fixed libidn versions
...
closes #371
2015-08-10 23:20:18 +02:00
Jay Satiro
8f0178a56b
examples: Fix typo in multi-single.c
2015-07-11 02:32:53 -04:00
Daniel Stenberg
c00b18d540
examples: provide <DESC> sections
2015-07-01 11:43:12 +02:00
Daniel Stenberg
bf445b6e12
http2-serverpush.c: example code
2015-06-24 23:44:42 +02:00
Daniel Stenberg
0e7d76d6a8
examples: more descriptions
2015-06-18 11:38:54 +02:00
Daniel Stenberg
26583a62ab
examples: add descriptions with <DESC>
...
Using this fixed format for example descriptions, we can generate a
better list on the web site.
2015-06-18 10:17:02 +02:00