Commit graph

149 commits

Author SHA1 Message Date
Adam Wilson
ab9b5cb48d
Add the ODBC 4.0 modules based on ImportC and deprecate the old ODBC 3.5 modules. (#10649) 2025-02-24 22:18:19 +08:00
0-v-0
1763d5eb27
Remove unused import (#10571) 2024-12-06 17:27:44 -08:00
Martin Kinkelin
a77d664388 Sync etc.c.zlib D bindings with updated zlib.h 2024-02-26 13:47:01 +08:00
Martin Kinkelin
dcbfbd43ac Bump zlib to latest v1.3.1
Which should cleanly compile with C11 now, without walls of warnings
with e.g. recent clang versions. Fixes Bugzilla Issue 24268.
2024-02-25 06:07:11 +08:00
Nicholas Wilson
097ffd493c Revert "Revert "Makefile: Compile zlib .c files with DMD via importC"" 2024-01-06 06:15:32 +08:00
Iain Buclaw
677ee33b21
Revert "Makefile: Compile zlib .c files with DMD via importC" 2024-01-01 18:20:14 +01:00
Martin Kinkelin
95f0956288 zlib: Add importC special case for va_start() on Win64
This fixes an undefined `__va_start` symbol for the zlib parts,
a problem on Win64 only so far.

The Microsoft headers use something like this (`vadefs.h`) for
x86_64:

```
void __cdecl __va_start(va_list* , ...);
```

The signature of their intrinsic isn't compatible with druntime's
`va_start` (which takes the first param as `out` ref, not as
explicit pointer), so I sadly don't see a way to handle this in
druntime's `__builtins.di` (or `importc.h`).
2023-12-19 03:11:24 +01:00
Martin Kinkelin
843afa8f64 Merge Makefiles 2023-12-16 22:22:20 +01:00
Adam Wilson
1be6d5d196
Undo ODBC deprecation and enable usage on non-Windows systems. (#8804)
* Undo ODBC deprecation and enable usage on non-Windows systems.
2023-08-31 14:26:34 +01:00
Johan Engelen
3ad507b512 Force makefile to x86 on Apple ARM cpu (dmd does not support ARM) 2022-10-22 19:46:09 +02:00
Brian Callahan
720f2183eb Fix Issue 23288 - zlib: Fix potential buffer overflow 2022-08-08 15:10:36 -04:00
Geod24
c0af021ef0 etc.c.curl: Remove a usage of 'in' with scope 2022-07-19 12:31:20 +00:00
Geod24
0295395110 Remove uses of 'in' on extern(C) functions
It is forbidden by DMD master.
2022-07-18 17:11:59 +02:00
Walter Bright
38243e3716
upgrade zlib C files to C11 (#8485)
upgrade zlib C files to C11

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2022-07-05 10:30:45 +00:00
Martin Kinkelin
d8f3b19483 Somewhat clean up win64.mak
* Remove some unused variables.
* Default to a matching MSVC cl.exe & lib.exe in PATH instead of an
  ancient Visual Studio 2010 installation.
* Remove explicit 32-bit recipes, requiring a separate make
  invocation.

Analogous to https://github.com/dlang/druntime/pull/3853.
2022-06-24 20:38:11 +02:00
Brian Callahan
3b16b03f6d Fix Issue 22998 - Update to zlib 1.2.12
Update zlib to the 1.2.12 release
Version 1.2.12 has these key improvements over 1.2.11:
* Fix a deflate bug when using the Z_FIXED strategy that can result in out-of-bound accesses.
* Fix a deflate bug when the window is full in deflate_stored().
* Speed up CRC-32 computations by a factor of 1.5 to 3.
* Use the hardware CRC-32 instruction on ARMv8 processors.
* Speed up crc32_combine() with powers of x tables.
* Add crc32_combine_gen() and crc32_combine_op() for fast combines.
Due to the bug fixes, any installations of 1.2.11 should be replaced with 1.2.12.
2022-04-09 15:48:46 -04:00
Iain Buclaw
11688c2624 etc.c.odbc: Update removal dates for ODBC deprecations 2022-02-15 14:45:45 +01:00
Iain Buclaw
002ebadd0c zlib: Synchronize testsuite with 1.2.11
Moves all test and documentation files to the location where they are
present in upstream zlib sources.  The build files have also been tested
and fixed on Linux.  Because they are all similiar, these fixes have
also been mirrored into the macOS and Windows build files too.
2021-12-16 04:23:10 +00:00
John Colvin
a40adec241
add some more auth types to etc.c.curl (#7350)
add some more auth types to etc.c.curl

Signed-off-by: Nathan Sashihara <n8sh@users.noreply.github.com>
Signed-off-by: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-09-13 12:56:55 +00:00
Iain Buclaw
88fd21e736 Mark etc.c.odbc as deprecated
Publicly import core.sys.windows.sql instead.

Set removal date for one year in the future (February 2020).
2021-01-28 13:30:32 +01:00
Ernesto Castellotti
1c77cdad29 Update header of sqlite3 to 3.33.0 2020-10-02 02:16:56 +02:00
Ernesto Castellotti
9ad970aadf
Update header of sqlite3 to 3.30.1
Like the previous PR (dlang#6997) I updated the SQLite 3 header to the latest version available
Signed-off-by: Ernesto Castellotti <erny.castell@gmail.com>
2019-10-20 15:43:11 +02:00
David Gileadi
775bcdee51 Turn on -preview=markdown 2019-07-04 10:28:30 -07:00
Ernesto Castellotti
a724c9a042 Update SQLite3 to 3.28.0 2019-05-17 18:14:15 +02:00
Igor Stojković
e991962044 Fix Issue 19781: etc.c.zlib should be @nogc 2019-04-21 11:23:13 +02:00
Sebastian Wilzbach
a7f9a174cf Fix quoting in zlib makefiles 2019-03-07 11:54:10 +01:00
Iain Buclaw
f8e19a134f posix.mak: Enforce no whitespace after opening parenthesis for version conditions 2018-09-23 17:38:58 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Martin Nowak
81f56f57f5 missing doc for CurlOption.connecttimeout_ms 2018-01-14 22:43:47 +01:00
The Dlang Bot
7444ea2062
Merge pull request #5844 from mathias-lang-sociomantic/mangling-std-zlib
Do not expose unmangled ZLIB_VERSION, Z_NULL and ZLIB_VERNUM needlessly
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-11-06 16:44:19 +01:00
Mathias Lang
e66b4e1fcb Correct Z_NULL definition to be a pointer 2017-11-06 11:23:58 +01:00
Mathias Lang
1f92ebe717 Do not expose unmangled ZLIB_VERSION and ZLIB_VERNUM needlessly
Before this change, ZLIB_VERSION and ZLIB_VERNUM were unmangled TLS variables.
That exposure was unneeded, and could lead to some clash with other zlib binding which would prevent linking.
2017-11-06 11:23:17 +01:00
Alexandru Caciulescu
a516b51d0e Fix Issue 6820 - etc.c.curl missing const 2017-11-03 17:12:00 +02:00
Rainer Schuetze
1e129c1123 win64: build C files with /GS- to avoid "security" calls 2017-11-03 09:52:36 +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