Iain Buclaw
9d575282ed
[dmd-cxx] Backport platform fixes to phobos ( #7784 )
...
[dmd-cxx] Backport platform fixes to phobos
merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
2021-02-03 18:01:57 +01:00
Iain Buclaw
efb80d384b
std.stdio: Deprecate extern(C) getline and getdelim
...
The publicly available `extern(C)` bindings for `getline` and `getdelim`
in `std.stdio` have been deprecated. Any code that still needs them can
import the symbol from `core.sys.posix.stdio` in druntime instead.
2021-01-25 10:35:09 +01:00
Joakim
0ebe8647dc
Add needed changes to get all tests passing with Musl
...
This is a cherry-pick of 034988a0db
2019-07-13 22:57:33 +09:00
Diederik de Groot
4177c1851f
Port of phobos to DragonFlyBSD
...
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2019-04-06 15:05:12 +02:00
MetaLang
f08936194e
Remove trailing whitespace
2019-01-08 17:48:34 +01:00
MetaLang
69c6edd114
Switch to using a named enum
2019-01-08 17:48:34 +01:00
MetaLang
3d47c1570c
Add missing colon to enum declaration
2019-01-08 17:48:34 +01:00
MetaLang
f3572da889
makeGlobal: Use an enum instead of magic numbers
2019-01-08 17:48:34 +01:00
Walter Bright
60ff51c412
stdio: remove reliance on std*** being aliasable
2019-01-08 17:48:34 +01:00
Iain Buclaw
dd2edb247f
Synchronize dmd-cxx with gdc-stable
2019-01-05 14:10:15 +01:00
Sebastian Wilzbach
8f21f57a1b
Fixup PR 5591 - Shorten unittest with collectException
2017-07-31 21:05:13 +02:00
RazvanN7
afc732661a
Fix Issue 12260 - Improve error of std.stdio.readf when involving whitespace
2017-07-31 17:51:41 +03:00
Roman Chistokhodov
dc7f802605
Add errnoString to remove code duplication from some modules
2017-07-01 02:34:49 +03:00
Sebastian Wilzbach
818deb3615
Fix DDoc macros
2017-06-30 01:39:24 +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
Sebastian Wilzbach
3afbd28c43
Fix Dscanner errors
2017-06-12 04:24:41 +02:00
Martin Nowak
3caa34f219
fix Issue 17472 - typeof(stdin) is no longer a File
2017-06-09 14:24:49 +02:00
Andrei Alexandrescu
9a09fbc800
Eliminate redundant static
in static __gshared
...
cc @MartinNowak
2017-06-06 21:01:25 -04:00
David Nadlinger
1842655068
std.stdio.makeGlobal: Optimize fast path, MemoryOrder.seq is overkill
2017-05-27 03:12:55 +01:00
David Nadlinger
5a3b007409
std.stdio.makeGlobal: Add explanatory comment
2017-05-27 03:11:50 +01:00
David Nadlinger
3fd1bc6fc5
std.stdio.makeGlobal: Fixup double-checked pattern
2017-05-27 02:59:45 +01:00
Andrei Alexandrescu
d66e18a5d5
Add atomicLoad to the uint-based solution
2017-05-25 02:14:49 +01:00
Andrei Alexandrescu
3f583249f8
Use explicit atomic loading for the double-checked variable
2017-05-25 01:45:23 +01:00
Andrei Alexandrescu
ee318374bd
Alternative implementation that doesn't use initOnce
2017-05-25 00:45:35 +01:00
Andrei Alexandrescu
38ebccd929
initOnce is slow, use double checking
2017-05-24 22:57:56 +01:00
Andrei Alexandrescu
a854092622
Make it less fun
2017-05-23 19:21:36 -04:00
Andrei Alexandrescu
099fa37bb5
Get rid of static this for initializing std{in,out,err}
2017-05-23 15:40:05 -04:00
Nikolay Tolstokulakov
bbd6421c3d
apply changes for netbsd: stdio - set name to not null value for reopen
2017-04-21 03:12:58 +00:00
Nick Treleaven
d20056974a
Document compile-time checking for format strings
2017-03-21 12:22:09 +00:00
Nick Treleaven
3aa8011a04
Issue 13568: Add CT-checked format string overloads to std.stdio
...
* Add overloads for readf, writef, writefln.
* Separate fmt argument from args for writef[ln] to improve docs.
2017-03-20 15:24:18 +00:00
The Dlang Bot
3568cb38e7
Merge pull request #5229 from schveiguy/fixtextwriter
...
Fix issue 17229 - File.byChunk (ubyte) w/ stdout.lockingTextWriter corrupts utf-8 data (and is very slow)
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-17 23:41:41 +01:00
H. S. Teoh
bef4e22477
Fix typo.
2017-03-13 12:33:21 -07:00
Steven Schveighoffer
ca20f0b667
Add unittest for Bug 17229
2017-03-06 10:19:18 -05:00
Steven Schveighoffer
9af2d0267f
Fix issue 17229 - do not use integer promotion to translate ubyte ranges
...
to dchar ranges.
2017-03-02 11:44:54 -05:00
Sebastian Wilzbach
023f525b83
Fix 16281 - std.stdio.readf should use ref instead of requiring pointers ( #5207 )
...
Fix 16281 - std.stdio.readf should use ref instead of requiring pointers
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-02 05:37:02 +01:00
Sebastian Wilzbach
d548e8830a
Replace LUCKY links with actual links
2017-02-28 23:46:54 +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
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
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
Andrei Alexandrescu
7f45d3c814
Merge pull request #5144 from wilzbach/if_constraint_same_indent
...
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 11:55:16 -05:00
Sebastian Wilzbach
31c4226042
Fix deprecation: std.utf.toUTF8 -> encode
2017-02-17 11:02:46 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
The Dlang Bot
93222f0be4
Merge pull request #5134 from JackStouffer/stdio-docs
...
Fix Issue 16991 - Make writeln documentation palatable
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-02-16 20:02:40 +01:00
Martin Nowak
a3ba8a69a7
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
# Conflicts:
# std/regex/internal/bitnfa.d
# std/regex/internal/tests3.d
2017-02-16 16:55:11 +01:00
Jack Stouffer
d7f6cc337e
Fix Issue 16991 - Make writeln documentation palatable
2017-02-16 10:52:17 -05:00