Eduard Staniloiu
04e844da77
Allocators should take a ubyte[] memory block instead of a void[] one
...
Allocators that rely on taking a block of unused memory to manage and allocate
from it should take a ubyte[] instead of a void[] in order to prevent users
from accidentally passing valid data and cause memory corruption/leaks.
2017-04-04 16:46:38 +03:00
Eduard Staniloiu
7c0ebad377
Make allocators' resolveInternalPointer take a const pointer as source
2017-04-03 20:35:01 +03:00
The Dlang Bot
ccf4ad1fca
Merge pull request #5237 from wilzbach/booktable-stdx-allocator
...
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-30 18:18:08 +02:00
Eduard Staniloiu
85000db4be
Make the resolveInternalPointer method abide the IAllocator API
2017-03-15 16:54:31 +02:00
Sebastian Wilzbach
1dfbb9ad16
[BOOKTABLES]: Add BOOKTABLE to stdx.allocator
2017-03-04 05:07:14 +01:00
Sebastian Wilzbach
b8a88558a9
Fix Ddoc warnings
2017-02-26 09:33:14 +01:00
Sebastian Wilzbach
64a0814ae4
Issue 16824: fix experimental makeMultidimensionalArray API
2017-02-22 23:32:04 +01:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +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
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
RazvanN7
23fcc1cc25
Style changes
2017-01-15 12:11:06 +02:00
RazvanN7
098e52ba21
Created the make/disposeMultidimensionalArray functions + unittest
2017-01-12 19:47:37 +02:00
RazvanN7
936a802b50
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:38:59 +02:00
RazvanN7
935d4ada9a
Issue 16824 - std.experimental.allocator.dispose leaks memory for arrays of more than 1 dimension
2016-12-21 16:31:44 +02:00
Sebastian Wilzbach
b82ae35fd7
Use void for auto function without return statement
2016-12-08 12:32:14 +01:00
Nick Treleaven
46d281bd07
expandArray: Move ForcedInputRange example into undocumented test
...
ForcedInputRange is private.
2016-09-05 12:17:06 +01:00
Andrei Alexandrescu
2854ae011f
Merge pull request #4680 from wilzbach/allocator_safe_2
...
Propagate attributes in std.experimental.allocator.make
2016-08-30 07:53:38 -04:00
Lodovico Giaretta
b96a330b77
fix issue 16319
2016-08-15 21:02:30 +02:00
Sebastian Wilzbach
ed4404399f
Propagate attributes in std.experimental.allocator.make
2016-08-15 12:09:23 +02:00
Sebastian Wilzbach
9c7bd0e24e
std.experimental.allocator: Add attributes to makeArray - part 3
2016-08-15 10:17:40 +02:00
Andrei Alexandrescu
a5c8440bc6
Merge pull request #4681 from wilzbach/allocator_safe_4
...
Add attributes to makeArray - part 1 (length)
2016-08-15 01:56:42 -04:00
Andrei Alexandrescu
c8e0c6ea08
Merge pull request #4679 from wilzbach/allocator_safe_1
...
Add attributes to GCAllocator and theAllocator
2016-08-15 01:26:11 -04: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
f35efe42f0
infer ElementType for ranges in makeArray and makeSlice
2016-07-23 01:21:34 +02:00
Jack Stouffer
b7019f1677
Removed unused debug imports from std.experimental.allocator
2016-07-03 21:34:26 -04:00
Jack Stouffer
9e75dd0b35
Removed global std.exception import from std.experimental.allocator
2016-07-03 21:33:18 -04:00
Jack Stouffer
3f618f24f8
Removed global std.conv import from std.experimental.allocator
2016-07-03 21:32:11 -04:00
Jack Stouffer
ffd5c44de6
Replaced package wide std.range import in std.experimental.allocator
2016-07-03 21:30:34 -04:00
Jack Stouffer
665dd87fde
Removed global std.algorithm import from std.experimental.allocator
2016-07-03 21:29:17 -04:00
Jack Stouffer
c183c2e5c2
Fixed std.algorithm imports in std.experimental.allocator to not be package wide
2016-07-03 01:34:31 -04:00
Jack Stouffer
98531fbd57
Fixed local imports in std.experimental.allocator.package
2016-06-30 18:07:00 -04:00
Robert Schadek
7f3d8545dc
Merge pull request #4503 from JackStouffer/makeArray
...
[Issue 16219] makeArray does unnecessary allocations for ranges with length
2016-06-30 12:02:47 +02:00
Jack Stouffer
833bca4aa5
Fixed Issue 16219: std.experimental.allocator.makeArray does unnecessary allocations for ranges with length
2016-06-29 16:51:18 -04:00
Jack Stouffer
9ad30b3e39
Fix too permissive constraint on std.experimental.allocator.makeArray
2016-06-29 14:03:02 -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
anonymous
68742c059a
Ddoc: clean up macros in std.experimental.allocator
...
Replacing LINK2, A, and the custom XREF2 with MREF and friends. Also
removing other unused macros.
This fixes the links on DDOX pages.
2016-06-04 22:16:11 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Andrei Alexandrescu
8ecabe23f2
Change semantics of expand: the null array cannot be expanded 'in place'
2016-05-27 16:36:01 -04:00
Andrei Alexandrescu
249f10a89e
Allow affix access from qualified data
2016-04-23 15:11:35 -04:00
Basile Burg
8533b6b532
fix redundant static checking, keep the deeper one from 15772
2016-03-14 15:58:33 +01:00
Steven Schveighoffer
3edc09dfa4
Merge pull request #4023 from BBasile/ussue-15639
...
fixed issue 15639 - allocator.make enables abstract class instantiation
2016-03-04 18:03:41 -05:00
Steven Schveighoffer
c0a34b41f7
Fix spacing around equals
...
See https://github.com/D-Programming-Language/phobos/pull/4022#commitcomment-16474681
2016-03-03 14:52:47 -05:00
Basile Burg
175b9129a0
fixed issue 15639
2016-03-01 22:19:29 +01:00
Basile Burg
211c10aff2
fixed issue 15721
2016-03-01 22:17:38 +01:00
Dariusz Antoniuk
338dfff953
Take array by ref for expandArray with init
2016-02-08 17:33:37 +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
Petar Kirov
6615f6990e
Fix makeArray for types with disabled this(this)
2016-01-27 17:39:59 +02:00