Commit graph

11003 commits

Author SHA1 Message Date
Walter Bright
8f69e217bf comparison.d: add overflow checks 2016-08-05 00:39:33 -07:00
Ilya Yaroshenko
ee30556a34 Merge pull request #4709 from andrewbenton/issue_16351
Fix issue 16351
2016-08-04 15:39:16 +02:00
Ilya Yaroshenko
bd33e92935 remove object file 2016-08-04 11:04:27 +02:00
Dmitry Olshansky
fba7339893 Merge pull request #4639 from 9il/mm3
fix Issue 16311 - toHash for Slice is not defined
2016-08-04 11:00:45 +02:00
Andrew Benton
65fe9934b4 Fix issue 16351
When using nonstandard output libraries such as
https://github.com/sickill/stderred argumentless writeln() will fail on
the enforce because it check specifically for a newline to be returned.
Checking instead that the output is not EOF follows the documentation
and allows overridden write() functions from the standard library.
2016-08-03 19:32:43 -04:00
ZombineDev
d9abb1028d Use assert instead of enforce in std.numeric
And also use onOutOfMemoryError instead of allocating and throwing a new
exception when malloc fails.
2016-08-04 01:27:21 +03:00
Jack Stouffer
841a76e4fd Better-er tests 2016-08-03 15:51:57 -04:00
Jack Stouffer
ded1bd5cb6 64bit MurmurHash2 2016-08-03 15:08:12 -04:00
Jack Stouffer
a7684062da Better tests 2016-08-03 15:04:11 -04:00
Ilya Yaroshenko
15c04beabd remove pragma(inline, false) 2016-08-03 16:22:33 +02:00
Walter Bright
03a5eae0f4 fix .ptr safety problem in schwartzSort() 2016-08-03 00:03:21 -07:00
Sebastian Wilzbach
b0e5a1b7da std.experimental.allocator: Add attributes to makeArray - part 2 2016-08-03 03:39:34 +02:00
Sebastian Wilzbach
6d9918e183 std.experimental.allocator: Add attributes to makeArray - part 1 2016-08-03 03:35:44 +02:00
Sebastian Wilzbach
a5b0016ebb Add attributes to GCAllocator and theAllocator 2016-08-03 03:16:31 +02:00
Sebastian Wilzbach
d331a5d176 Extend reallocate test for all Allocators 2016-08-03 03:10:41 +02:00
Steven Schveighoffer
5422d2647e Merge pull request #4655 from WalterBright/uni-overflow
std.uni: add overflow checks to storage allocation
2016-08-02 19:15:11 -04:00
Walter Bright
d48c3c35ed std.uni: add overflow checks to storage allocation 2016-08-02 14:32:05 -07:00
Martin Trenkmann
31d8b4785d Fixed wrong variable name in embedded doc 2016-08-02 18:43:14 +02:00
Steven Schveighoffer
ef828293f5 Merge pull request #4654 from WalterBright/functional-overflow
std.functional: add overflow checks
2016-08-02 11:31:02 -04:00
Steven Schveighoffer
6784f6323d Merge pull request #4657 from WalterBright/signals-overflow
std.signals: check for overflow on allocation sizes
2016-08-02 10:22:35 -04:00
Walter Bright
7b30453dd2 Merge pull request #4686 from wilzbach/std_algorithm_iteration
add unittest attributes to std.algorithm.iteration
2016-08-02 04:07:44 -07:00
Walter Bright
5768530d38 Merge pull request #4684 from jpf91/digestCov
Add unittest for .length and .peek (std.digest.digest.WrapperDigest)
2016-08-02 03:12:26 -07:00
Jack Stouffer
fb2c8dd7dc Add toHash to SysTime 2016-08-01 13:47:21 -04:00
Dmitry Olshansky
22fdbcd1db Merge pull request #4656 from WalterBright/array-overflow
std.array: check for overflow on allocation sizes
2016-07-31 21:53:03 +02:00
Cauterite
a12690a2e6 [trivial] Windows is supported; docs said otherwise 2016-08-01 04:50:34 +10:00
Ilya Yaroshenko
4866f6c79d add Slice.toHash 2016-07-31 18:07:42 +02:00
David Nadlinger
d7a7173c7d Merge pull request #4668 from JackStouffer/asserts
Enable always true assert checks in Travis
2016-07-31 17:04:35 +01:00
David Nadlinger
eb9e676783 Merge pull request #4647 from 9il/assign
fix Issue 16315 and optimise arithmetic operations for Slice
2016-07-31 15:50:26 +01:00
Jack Stouffer
f30c6a106c Enable always true assert checks in Travis 2016-07-31 10:47:26 -04:00
Ilya Yaroshenko
a92618b3a3 relax length constraints 2016-07-31 16:45:30 +02:00
Ilya Yaroshenko
04b45d1deb Merge pull request #4697 from ZombineDev/patch-6
Make iotaSlice implementation easier to understand
2016-07-31 15:50:13 +02:00
David Nadlinger
50ad274826 Merge pull request #4678 from llucenic/patch-1
Typos corrections for logger
2016-07-31 13:47:52 +01:00
Petar Kirov
fd0ceb2b39 Make iotaSlice implementation easier to understand 2016-07-31 15:18:50 +03:00
Ilya Yaroshenko
7cfac7d3f0 Merge pull request #4696 from ghost91-/std_experimental_allocator_building_blocks_nullallocator_doc_fix
[trivial] Fix docs for NullAllocator
2016-07-31 13:49:08 +02:00
Johannes Loher
7f16265ab6 Commented out documentation for the commented out function goodAllocSize in NullAllocator"
Previously, the docs showed the additional line "Returns n.". This documentation comment belongs to the goodAllocSize function, which is commented out, so commented out the doc comment, too.
2016-07-31 11:23:35 +02:00
Ilya Yaroshenko
3e0a93325b fix Issue 16315, optimise arithmetic operations for Slice 2016-07-31 11:11:47 +02:00
Ilya Yaroshenko
c58e3fadc9 Issue 16308 - [ndslice] should always has save primitive
The reason is that Slice never calls front/popFront and others
primitives of underlaying range.

remove constraints for `save` in ndslice.selection
2016-07-31 10:43:26 +02:00
Ilya Yaroshenko
945feb73c5 add iotaSlice variant with step 2016-07-30 23:41:31 +02:00
Johannes Pfau
8cb66be20a Add unittest for .length and .peek (std.digest.digest.WrapperDigest) 2016-07-30 09:35:01 +02:00
Steven Schveighoffer
69c00bc1a9 Merge pull request #4627 from ttung/empty
Properly handle the case where an environment variable is an empty string
2016-07-29 22:56:11 -04:00
Walter Bright
6f5e8692ab std.signals: check for overflow on allocation sizes 2016-07-29 15:30:22 -07:00
Walter Bright
c6aa7e19d5 Merge pull request #4685 from wilzbach/std_algorithm_sorting
add unittest attributes to std.algorithm.sorting
2016-07-29 15:09:35 -07:00
Ľudovít Lučenič
d1064467a0 Typos corrections
Sole improvements of documentation.
2016-07-29 23:35:54 +02:00
David Nadlinger
516f303751 Merge pull request #4689 from wilzbach/enable_timsort_ctfe
std.algorithm.sorting: enable CTFE test for Timsort
2016-07-29 21:08:22 +01:00
Steven Schveighoffer
5eb27bc90f Merge pull request #4690 from wilzbach/hexstring_safe
std.digest.digest: make toHexString @safe
2016-07-29 15:15:20 -04:00
David Nadlinger
79d1195724 Merge pull request #4528 from schveiguy/fixgenerate
Fix generate to be correctly implemented range.
2016-07-29 19:20:22 +01:00
Steven Schveighoffer
f7d8db5c5e Add changelog entry, appease travis, fix docs, add unit test 2016-07-29 12:44:30 -04:00
Sebastian Wilzbach
790aada728 replace functions with lambda aliases 2016-07-29 18:16:34 +02:00
Sebastian Wilzbach
7864e43ce5 std.digest.digest: make toHexString @safe 2016-07-29 17:44:50 +02:00
Sebastian Wilzbach
fde82ff034 std.algorithm.sorting: enable CTFE test for Timsort 2016-07-29 17:31:20 +02:00