Commit graph

116 commits

Author SHA1 Message Date
Iain Buclaw
dd2edb247f Synchronize dmd-cxx with gdc-stable 2019-01-05 14:10:15 +01: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
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +01:00
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
ef7be4b60d Automatically add spaces to binary operators (<<)
command:

sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Iain Buclaw
0c960003f8 Update zlib to the 1.2.11 release
Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input
2017-01-24 00:12:07 +01:00
Iain Buclaw
a6db9b357b Update zlib to the 1.2.10 release
Changes in 1.2.10 (2 Jan 2017)
- Avoid warnings on snprintf() return value
- Fix bug in deflate_stored() for zero-length input
- Fix bug in gzwrite.c that produced corrupt gzip files
- Remove files to be installed before copying them in Makefile.in
- Add warnings when compiling with assembler code

Changes in 1.2.9 (31 Dec 2016)
- Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
- Improve contrib/blast to return unused bytes
- Assure that gzoffset() is correct when appending
- Improve compress() and uncompress() to support large lengths
- Fix bug in test/example.c where error code not saved
- Remedy Coverity warning [Randers-Pehrson]
- Improve speed of gzprintf() in transparent mode
- Fix inflateInit2() bug when windowBits is 16 or 32
- Change DEBUG macro to ZLIB_DEBUG
- Avoid uninitialized access by gzclose_w()
- Allow building zlib outside of the source directory
- Fix bug that accepted invalid zlib header when windowBits is zero
- Fix gzseek() problem on MinGW due to buggy _lseeki64 there
- Loop on write() calls in gzwrite.c in case of non-blocking I/O
- Add --warn (-w) option to ./configure for more compiler warnings
- Reject a window size of 256 bytes if not using the zlib wrapper
- Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
- Add --debug (-d) option to ./configure to define ZLIB_DEBUG
- Fix bugs in creating a very large gzip header
- Add uncompress2() function, which returns the input size used
- Assure that deflateParams() will not switch functions mid-block
- Dramatically speed up deflation for level 0 (storing)
- Add gzfread(), duplicating the interface of fread()
- Add gzfwrite(), duplicating the interface of fwrite()
- Add deflateGetDictionary() function
- Use snprintf() for later versions of Microsoft C
- Fix *Init macros to use z_ prefix when requested
- Replace as400 with os400 for OS/400 support [Monnerat]
- Add crc32_z() and adler32_z() functions with size_t lengths
- Update Visual Studio project files [AraHaan]
2017-01-13 23:46:14 +01:00
Rainer Schuetze
2268f2063d do not enforce specific MS runtime 2016-11-10 08:42:53 +01: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
Jack Stouffer
0ae7812969 Fix Issue 13572: etc.c.zlib must be nothrow 2016-06-21 08:50:38 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +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
Dmitry Olshansky
0853d4bc2e Merge pull request #4245 from wilzbach/use_new_alias
use the 'new' alias syntax
2016-04-27 17:16:49 +04:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
f891779f25 use the new alias syntax 2016-04-27 01:56:50 +03:00
Walter Bright
1b6cf80232 fix Issue 15457 - Symbol Undefined __lseeki64 2016-03-19 21:58:06 -07:00
Nicolas Sicard
186e7e5814 Removed trailing whitespace 2016-01-25 00:24:11 +01:00
Nicolas Sicard
153e78aefa The sqlite3 binding is valid up to version 3.10.2 2016-01-22 14:22:22 +01:00
Nicolas Sicard
57f84fe45d More whitespace fixes 2016-01-22 14:19:38 +01:00
Nicolas Sicard
4b1e5f8a6a Fixed whitespace 2016-01-20 22:51:02 +01:00
Nicolas Sicard
5c60f4c02a Updated sqlite3 to version 3.10.1 2016-01-20 08:58:35 +01: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
Brian Schott
5a2d290de9 Merge pull request #3722 from Abscissa/for-issue-14413
Doc formatting fixes for DMD PR 4745
2015-10-16 21:27:46 -07: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
Marc Schütz
9088ce541b Remove executable flag from source files 2015-10-14 20:00:57 +02:00
Vladimir Panteleev
52d6930daf Use canonical links to forum.dlang.org
http://forum.dlang.org/help#canonical
2015-10-07 10:55:51 +00:00
Vladimir Panteleev
b1dfdf138b etc.c.sqlite3: Fix incorrect constness of sqlite3_err* functions
Introduced in 79b0531be3
2015-09-01 05:35:41 +00:00
Vladimir Panteleev
ac701a6cb9 etc.c.sqlite3: Fix and add missing declarations from SQLite 3.8.6
Fixes issue 14798
2015-09-01 05:32:55 +00: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
Adam D. Ruppe
87f7af1fd5 eliminate dangerous and/or useless casts from zlib 2015-07-22 10:28:33 -04:00
Andrei Alexandrescu
3582040b8a Add Windows instructions 2015-07-20 13:28:23 -04:00
Andrei Alexandrescu
9a3ad0c610 Add ODBC linking instructions 2015-07-19 15:43:22 -04:00
Rainer Schuetze
e2e374490a remove CR and tabs 2015-07-08 06:55:20 +02:00
Andrei Alexandrescu
a890169d28 Make SQL_SUCCEEDED a template 2015-06-11 17:41:52 -07:00
Andrei Alexandrescu
db50ef2a92 Make couple more inline functions templates 2015-06-11 17:32:56 -07:00
Andrei Alexandrescu
27728fd303 Make SQL_LEN_BINARY_ATTR a template 2015-06-11 17:29:42 -07:00
Andrei Alexandrescu
ee91658531 Canonical forum link 2015-06-11 17:13:21 -07:00
Andrei Alexandrescu
6b5270277c Make small functions derived from C macros templates so they don't require linking with ODBC 2015-06-09 19:12:16 -07:00