Commit graph

9330 commits

Author SHA1 Message Date
Joakim
10c01a0614 On Android, update std.datetime to extract timezone data and some other fixes. 2016-02-10 14:25:42 +05:30
Sönke Ludwig
09b69b2fdf Add unit test for Tid.toString. 2016-02-09 12:58:21 +01:00
Sönke Ludwig
d6908237c9 Fix Tid.toString().
The previous behavior generated a string that was different for every copy of the same Tid. With this change it outputs the address of the unique MessageBox instance instead.
2016-02-09 12:43:35 +01:00
sigod
b847c5a194 Fix Issue 15659 - fix crash in SList.clear() 2016-02-08 23:22:31 +03:00
Ryan Frame
5c63480147 Add missing import
std.stdio.File is needed in the upload function.
2016-02-05 06:43:47 -05:00
tsbockman
b23608b635 Fix Phobos issue 15480 2016-02-04 12:01:36 -08:00
David Nadlinger
7652976a59 Merge pull request #3957 from ZombineDev/nothrow-mallocator
Add attributes to most functions in allocator.mallocator and allocator.common.
2016-02-03 21:42:18 +01:00
Vladimir Panteleev
c9c31287dd Merge pull request #3965 from aG0aep6G/setTimes
remove @safe from template setTimes
2016-02-03 19:17:01 +00:00
ZombineDev
1c555f0d1f Handle all return codes of posix_memalign, such as EINVAL. 2016-02-03 17:33:24 +02:00
ZombineDev
ce938fe432 Add attributes to most functions in allocator.mallocator and allocator.common.
Also made the style more consistent.
2016-02-03 17:33:24 +02:00
anonymous
f1f00e190d fix documentation for symlink
The target path is actually relative to the link, not to the current
working directory. This is in line with the ln shell command, so changing
the documentation to match the behavior seems in order.

Also changing some wording, and un-highlighting "symlink" throughout as
it never refers to the function.
2016-02-03 15:25:33 +01:00
anonymous
81b15b7011 remove @safe from template setTimes
Letting attribute inference take care of things. Making a unittest @safe
to ensure that setTimes itself doesn't do anything unsafe.
2016-02-03 15:24:35 +01:00
Andrei Alexandrescu
4be6bc1418 Merge pull request #3962 from schveiguy/gc_goodAllocSize
Add goodAllocationSize to GCAllocator
2016-02-02 17:04:38 -05:00
Steven Schveighoffer
245977e3e7 Add more unit tests for GCAllocator.goodAllocSize 2016-02-02 15:11:55 -05:00
Jonathan M Davis
747135d6d6 Merge pull request #3954 from quickfur/canfind_docs
Add example of how to use a custom predicate with canFind.
2016-02-02 04:38:40 -08:00
Steven Schveighoffer
0c5e570360 Optimize use of bsr better. 2016-02-01 09:27:04 -05:00
Steven Schveighoffer
e9e52d9e05 Add goodAllocationSize to GCAllocator -- the GC has very well defined
behavior for this.
2016-01-31 14:50:53 -05:00
tsbockman
03ec7f38bd Don't use top-level selective import in std.math because of DMD issue 314. 2016-01-29 14:00:49 -08:00
Robert Schadek
c44e239ced Merge pull request #3958 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-01-29 14:54:39 +01:00
JakobOvrum
eec7609314 Merge pull request #3956 from ZombineDev/patch-3
Fix makeArray for types with disabled this(this)
2016-01-29 08:27:06 +09:00
Dariusz Antoniuk
e9ef91d5d4 Fix a typo in stack allocator usage example
Objs should be deallocated by the same allocator used to allocate them.
2016-01-28 15:16:48 +01:00
H. S. Teoh
02c0083e1c Merge pull request #3942 from andralex/maxPos
Add maxCount and maxPos
2016-01-27 21:18:43 -08:00
Martin Nowak
3b417a98f6 Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-01-27 21:17:17 +01:00
Petar Kirov
6615f6990e Fix makeArray for types with disabled this(this) 2016-01-27 17:39:59 +02:00
AndrewEdwards
096480ecc3 Remove deprecated modules and symbols scheduled for removal in 2015 2016-01-27 18:34:07 +09:00
H. S. Teoh
6a98d6ba03 Better variable naming. 2016-01-26 16:47:43 -08:00
H. S. Teoh
5517fe1bcd Add example of how to use a custom predicate. 2016-01-26 15:52:45 -08:00
Martin Nowak
581574e449 Merge pull request #3935 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-01-25 01:43:05 +01:00
Martin Nowak
861c1c5b39 fixup for #3822
- keep ptr and len as deprecated (unsafe) properties
2016-01-24 23:38:06 +01:00
Martin Nowak
6be2087858 Merge pull request #3824 from jmdavis/issue15376
Fix for issue# 15376. Get time zone conversions at runtime.
2016-01-23 15:05:59 +01:00
Jonathan M Davis
635cecee55 Fix for issue# 15376. Get time zone conversions at runtime.
It's proven to be a maintenance problem to maintain the time zone
conversions between the IANA TZ database names and the Windows time zone
names in std.datetime. So, rather than compiling them in, this provides
a way to get them at runtime (which will also make it so in the future,
older releases can work properly on up-to-date Windows boxes, which is
not the case currently with regards to time zone conversions). The
current conversion functions can be deprecated after parseTZConversions
has been out for a release (so that it's possible for users to compile
their code for two releases in a row without getting deprecation
messages).
2016-01-23 04:43:26 -08:00
Andrei Alexandrescu
5fa89e9481 Merge pull request #3947 from eco/patch-15
Remove suggestion in documentation to add an alias to uses of Flag
2016-01-22 14:11:40 -05:00
Brad Anderson
7a3837095b Remove and explain Flag alias antipattern 2016-01-22 11:06:13 -07:00
Ilya Yaroshenko
0d639cc6ee Merge pull request #3945 from kinke/kimJongUn
[Windows] std.datetime: Add North Korean timezone
2016-01-21 15:09:00 -08:00
Andrei Alexandrescu
600aad231c Merge pull request #3946 from 9il/cawp
remove Flag alias
2016-01-21 17:11:30 -05:00
Ilya Yaroshenko
bbc2a9d9a2 remove Flag alias 2016-01-21 12:06:34 -08:00
Martin
756e406281 [Windows] std.datetime: Add North Korean timezone
MS recently added it with https://support.microsoft.com/en-us/kb/3093503
2016-01-21 20:57:03 +01:00
aG0aep6G
40a1713eeb fix broken link 2016-01-21 01:48:23 +01:00
Andrei Alexandrescu
eba4817874 Add maxCount and maxPos 2016-01-20 12:12:41 -05:00
Jonathan M Davis
804623012e Merge pull request #3752 from nordlow/unary-startsWith
Add Unary Overload of startsWith() and endsWith()
2016-01-19 22:27:59 -08:00
Per Nordlöw
f7f48475f2 Review updates 2016-01-18 12:45:01 +01:00
Jonathan M Davis
791659460d Merge pull request #3751 from jamadagni/StandardExceptionConstructors
Standard exception constructors
2016-01-17 17:35:14 -08:00
Per Nordlöw
bfebdc7ecc Add alternative commenting 2016-01-17 21:21:39 +01:00
Per Nordlöw
0b934852c3 Add unary overloads for startsWith and endsWith 2016-01-17 21:21:39 +01:00
Martin Nowak
10d1dc4a5b Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-01-17 20:36:06 +01:00
Ilya Yaroshenko
7f24ccfeb5 Merge pull request #3933 from andralex/heap
Faster heap operations
2016-01-16 21:42:40 -08:00
Shriramana Sharma
5978ca7831 migrate other Phobos modules to use std.exception.basicExceptionCtors 2016-01-17 10:39:37 +05:30
Shriramana Sharma
8ddd871779 Add basicExceptionCtors mixin 2016-01-17 10:39:37 +05:30
Andrei Alexandrescu
731e47e242 Merge pull request #3800 from JackStouffer/lambda
Removed string predicates from std.algorithm.iteration documentation
2016-01-15 20:32:40 -05:00
Andrei Alexandrescu
01bdccf310 Improved siftDown and percolate, also documented both 2016-01-15 17:24:49 -05:00