Commit graph

35 commits

Author SHA1 Message Date
Alexandru Caciulescu
a516b51d0e Fix Issue 6820 - etc.c.curl missing const 2017-11-03 17:12:00 +02:00
Sebastian Wilzbach
70f06b2357 Remove old, redundant private import access specifier
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:

sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
anonymous
ac91dfef6b remove bad @trusted annotations from etc.c.curl
Functions that take pointer and length separately cannot be memory-safe.
The caller can pass a length that's too large, leading to an out-of-bounds
read.
2016-06-30 23:06:43 +02:00
Sebastian Wilzbach
1d34a121e9 apply all-man braces in Phobos
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Jack Stouffer
e10acac0a5 Fixed long lines in etc/c/curl.d 2016-05-10 20:51:39 -04:00
Sebastian Wilzbach
f891779f25 use the new alias syntax 2016-04-27 01:56:50 +03:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Nick Sabalausky
d121265f9f Requested fixes from pull request. 2015-10-15 16:34:23 -04:00
Nick Sabalausky
a53d6f3607 Fix trailing whitespace, once more. 2015-10-14 16:30:38 -04:00
Nick Sabalausky
bc956a6764 Fix trailing whitespace, again. 2015-10-14 16:25:25 -04:00
Nick Sabalausky
4388f49b4d Fix trailing whitespace. 2015-10-14 16:16:40 -04:00
Nick Sabalausky
67c5781d3c Fix UL/LI 2015-10-14 16:08:27 -04:00
Nick Sabalausky
b46de002e1 Doc formatting fixes for https://github.com/D-Programming-Language/dmd/pull/4745 2015-10-14 15:29:14 -04:00
Martin Nowak
9fe6ebceaf fix clearIfSupported implementation
- to clear an option like ssl_ctx that depends
  on the compile-time configuration of the used
  curl library

- update CurlError enum
  obsolete4 was reused as CURLE_NOT_BUILT_IN

- unknown_telnet_option was incorrectly named
  (doesn't have anything to do with telnet)
2015-08-25 01:05:12 +02:00
Martin Nowak
592ce24379 dynamically load libcurl
- avoids issues with versioned symbols on different platforms
- lazy loading/initialization of curl library
- fix Issue 13324
- try to load curl from the exe itself before loading a shared library
  thus allowing to link against a different or a static curl library
2015-08-22 16:27:45 +02:00
Brad Roberts
f4c0bbd472 fix const-ness of char* parameters and mark some apis as @trusted 2015-04-16 11:19:19 -07:00
Martin Nowak
c67d20c581 etc.c.curl is missing "convenient" aliases
- those are used in all examples as if they
  were "real" options, so make them part of
  CurlOption enum
2014-12-12 13:26:27 +01:00
Martin Nowak
6a93794050 fix constness of some char* 2014-11-20 13:41:15 +01:00
Joakim
800506b794 Deprecate last remaining module from std.c and move it to druntime 2014-10-31 12:04:41 -05:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
Andrej Mitrovic
e34c3ca875 Fix Issue 8767 - Add note on where to download the curl static library when using x86 Windows. 2014-04-24 20:52:36 +02:00
Martin Nowak
d0e51e109f fix Issue 10710 - phobos depends on versioned libcurl
- create a libcurl_stub.so for linking

- set it's soname to libcurl.so.4 so that phobos
  gets a DT_NEEDED libcurl.so.4 entry

- the runtime linker will load libcurl.so and resolve
  all undefined references

- disable pragma(lib, "curl") because it doesn't work
  for archives anyways and additionally links against
  the real libcurl (dmd appends -L-lcurl when building phobos).
2013-12-20 15:38:11 +01:00
Daniel Green
58f4356ca2 Change version( Win32 ) to version( Windows ) when Win64 would be supported as well. 2012-01-16 22:10:18 -05:00
Jonas Drewsen
b1bff270da fix htod error and correct some ints to be c_long 2011-06-12 22:41:01 +02:00
Walter Bright
8c0f365f9e add doc for curl.d 2011-06-01 23:04:13 -07:00
Walter Bright
fef16a72bf add etc/c/curl to win32.mak 2011-04-01 21:36:04 -07:00
Jonas Drewsen
a42a954d0b Using enums instead of const variables for constants 2011-03-29 10:49:42 +02:00
Jonas Drewsen
5195ec0a61 structs are now extern(C) 2011-03-29 10:44:47 +02:00
Jonas Drewsen
630769dd00 Changed string constants into enums 2011-03-29 10:39:32 +02:00
Jonas Drewsen
3ca173d176 Fixes from review by andralex 2011-03-17 21:58:35 +01:00
Jonas Drewsen
980d599f7d Correct comments and turn some defines into enums 2011-03-17 10:22:32 +01:00
Jonas Drewsen
2f69ffb9d1 c declarations for libcurl 2011-03-15 20:17:40 +01:00