Andrei Alexandrescu
c1c8e8681e
remove surprising emtpy line
2018-01-16 11:58:56 -05:00
Ali Çehreli
f9e3dde2bb
Use string lambdas in non-documentation unittests to reduce memory usage of dmd
2017-12-28 22:56:23 -08:00
Ali Çehreli
8cfff5e810
Use message with static assert(0), use aliases instead of nested functions, do not use format in CTFE, add more unit tests.
2017-12-26 23:47:12 -08:00
Ali Çehreli
665e4adbce
Implement std.parallelism.fold with static if branches instead of with template specializations
2017-12-26 22:40:48 -08:00
Ali Çehreli
673c4e959d
Apply review comments: Backticks for inline code, StdUnittest, etc.
2017-12-26 22:40:48 -08:00
Ali Çehreli
c472b2303d
Fix Issue 18096 - Add fold() to std.parallelism
2017-12-26 22:40:48 -08:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
...
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Sebastian Wilzbach
c47c950d84
Manually replace body
with do
in std.parallelism
2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
df6365092a
Replace body
keyword with its replacement: do
...
Automatic replacement with
sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Andrei Alexandrescu
746b9e82f1
Fix visibility issue
2017-10-27 08:11:26 -04:00
Andrei Alexandrescu
4f9b7efbf4
Propagate safety properly
2017-10-26 16:38:41 -04:00
Andrei Alexandrescu
286930a99c
Review
2017-10-26 12:10:14 -04:00
Andrei Alexandrescu
58c4f7deed
Eliminate static shared this from std/parallelism.d
2017-10-25 17:41:26 -04:00
The Dlang Bot
c0652345e9
Merge pull request #5502 from wilzbach/fix-17539
...
Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable'
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-07-04 22:18:10 +02:00
Sebastian Wilzbach
339308b829
Add // nocoverage to non-deterministically covered lines
2017-07-03 23:36:15 +02:00
Sebastian Wilzbach
f3770ba1d6
Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable'
2017-06-21 09:58:21 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7
Sort selective imports
2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
Vladimir Panteleev
76c6dcc984
Allow ignoring individual lines for coverage analysis
...
This adds a work-around to the non-deterministic coverage fluctuations
in std.parallelism. Lines with `nocoverage` on them will be excluded
from coverage analysis, and be considered as not containing any code.
2017-05-07 15:26:25 +00:00
Jack Stouffer
516c74bf0b
Added some type qualifiers to std.parallelism
2017-03-19 15:01:47 -04:00
Jack Stouffer
d4a890fa09
Removed global std.typecons import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
dddf0991d7
Removed global core.exception import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
dbb7f7a722
Removed global std.math import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
4a7deff8da
Removed global std.exception import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
c70cbe6631
Removed global std.conv import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
3d8edd5f96
Removed global std.range import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
114ff0034e
Removed global std.algorithm import from std.parallelism
2017-03-14 16:24:58 -04:00
Jack Stouffer
4ce5d44dbb
Use underscores for number literals with five or more digits
2017-02-23 09:45:49 -05:00
Andrei Alexandrescu
30724e67d9
Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
...
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +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
Bastiaan Veelo
4c3ec6adc4
[doc] Remove spurious data section.
...
Not sure if this hack prevents the line starting with "data:" to be interpreted as a data section, please test.
Note: data sections seem to be an undocumented feature of ddoc: https://dlang.org/spec/ddoc.html
Maybe ddoc should require an empty line above (real) sections?
2017-02-09 18:41:16 +01:00
Sebastian Wilzbach
f0c5a9fad6
Follow-up style fixes for December
2016-12-08 12:32:24 +01:00
ZombineDev
b44fb6bea2
Fix typo introduced in PR #4915
2016-11-22 10:09:38 +02:00
Petar Kirov
a7597df60e
Fix issue 16705 - TaskPool.reduce fails to compile "cannot get frame pointer to D main"
2016-11-20 20:55:43 +02:00
Etienne Cimon
856c984b78
Avoid GC Allocations in sharedStaticDtor
...
The `Thread.opApply` static method will use `realloc` from `core.stdc.stdlib` instead of `gc.gc.GC.malloc` which sometimes fails with `onInvalidMemoryOperationError` when run within a `static ~this` module dtor
2016-10-04 15:04:29 -04:00
Walter Bright
b14de98141
use @system to return pointers to stack
2016-08-24 12:55:52 -07:00
Steven Schveighoffer
c74537000c
Fix all windows cycles
2016-07-08 21:07:15 -04:00
Steven Schveighoffer
612444ea67
Fix loop during unit tests between std.parallelism and std.range
2016-07-06 11:45:52 -04:00
Walter Bright
1decb74758
remove incorrect use of 'scope'
2016-07-04 13:22:29 -07:00
Jack Stouffer
a485ea00a0
Fixed local imports in std.parallelism
2016-07-01 09:16:22 -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
anonymous
d648f9320e
XREF_PACK -> REF (sed)
...
Done by:
from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
484f7bfbe0
enforce: whitespace after catch
2016-05-14 15:28:43 +03:00
Sebastian Wilzbach
5a8988c149
style fix: add space after for operator
2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Nikolay Tolstokulakov
eff74ed2a2
netbsd patch
2016-03-11 10:10:47 +06:00