Commit graph

554 commits

Author SHA1 Message Date
Martin Nowak
2d4fa13f30 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-05-02 01:06:55 +02:00
Diederik de Groot
7aa7a2d34e
Fix stdio File.open / resetFile / detach / refcount 2018-04-30 15:31:19 +02:00
aG0aep6G
b771e175d0 only decode when there's a highSurrogate 2018-04-24 07:45:21 +02:00
aG0aep6G
5fa8ba12e2 merge imports 2018-04-23 23:39:23 +02:00
aG0aep6G
bf1b4db8a3 only store the high surrogate, and use \0 to indicate its empty 2018-04-23 23:11:53 +02:00
aG0aep6G
2ab81bcbe7 add comment about the final throw 2018-04-23 23:03:02 +02:00
aG0aep6G
8611e450d8 destroy file_ before possibly throwing 2018-04-23 23:02:21 +02:00
aG0aep6G
d5cc4c5087 fix conversion from wchar to char in LockingTextWriter.put
Fixes the easier part of issue 18789.
2018-04-23 13:43:57 +02:00
Jack Stouffer
e14f89e170 Make references to input ranges a link to isInputRange 2018-04-08 16:19:57 -04:00
Jack Stouffer
db11ea1d25 Added note about thread safety 2018-04-06 08:49:59 -04:00
Jack Stouffer
9410ed02d3 Fix Issue 15768 - std.stdio.trustedStdout accesses __gshared data without synchronization 2018-04-03 09:01:47 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jonathan Marler
2dd14c6445 Accomodate Enum init deprecation 2018-03-28 04:27:46 -06:00
Sebastian Wilzbach
87301eb1b5 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-03-25 18:23:14 +02:00
Sebastian Wilzbach
e8d7ec51d3 Fix brace style + typos 2018-03-24 11:31:17 +01:00
MetaLang
9660b9ad88
Fix typos for stderr and stdout doc 2018-03-24 04:06:55 -03:00
Sebastian Wilzbach
a502a4731f Fix Issue 18648 - Document the type of std.stdio.stdin and friends 2018-03-22 21:36:41 +01:00
Martin Nowak
03e2c4947f Merge remote-tracking branch 'upstream/stable' into merge_stable
# Conflicts:
#	changelog/std-file-readText.dd
#	changelog/std-parallelism-fold.dd
2018-03-02 21:32:43 +01:00
Steven Schveighoffer
f3ab08db0f
Fix minor ambiguity 2018-03-02 08:31:19 -05:00
Jack Stouffer
7a26c9505f Update lockingTextWriter docs 2018-03-02 08:18:28 -05:00
Radu Racariu
0641553468
Add uClibc definitions 2018-02-25 18:59:47 +02:00
Martin Nowak
09926f9837 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-02-23 21:37:12 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Joakim
034988a0db Add needed changes to get all tests passing with Musl 2018-02-17 14:25:07 +05:30
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jack Stouffer
88c1e4fb42 Modified the behavior of std.stdio.LockingTextWriter.put
* Removed code that caused wstrings to decode to dchars, and then encoded to chars
* Made the wchar path throw a UTF exception on bad data
* Improved the docs for LockingTextWriter
2018-01-30 13:08:37 -05:00
Sebastian Wilzbach
b9eaa3b1bd Fix Issue 18278 - writef documentation 404 error 2018-01-26 10:17:47 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
d33e7df1ca Fix Issue 18153 - deprecate public symbols ByLine, ByRecord, ByChunk 2018-01-03 01:18:14 +01: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
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
The Dlang Bot
99002c366b
Merge pull request #5792 from jercaianu/lockingtextwriter
Fix Issue 9661 - LockingTextWriter should increment file handle reference count
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-14 18:14:07 +01:00
Alexandru Jercaianu
0802e6adef Refactored if blocks 2017-11-14 17:55:37 +02:00
Alexandru Jercaianu
3910abb31b Renamed 'file' to 'file_' 2017-11-10 19:43:55 +02:00
Alexandru Jercaianu
22954c5376 Added comments reflecting the change 2017-11-10 01:24:40 +02:00
Alexandru Jercaianu
752235ee8c Removed FILE* member, because we can access it through the 'File' object 2017-11-10 01:04:34 +02:00
Alexandru Jercaianu
5fa79373c9 Added comments explaining why we need to keep both members 2017-11-09 14:02:46 +02:00
Alexandru Jercaianu
cb67c5d50f Fix Issue 9661 - LockingTextWriter should increment file handle reference count
test for locking binary writer
2017-10-19 15:39:55 +03:00
Andrei Alexandrescu
7f9a371317 Minor adjustment 2017-10-17 23:26:09 +02:00
Alexandru Jercaianu
04b0eee836 Fix Issue 10395 - [std.stdio] Closing a popened File with unread output throws an exception 2017-10-17 11:34:53 +03:00
Alexandru Jercaianu
459becf7ee undo change 2017-10-16 22:04:54 +03:00
Alexandru Jercaianu
d8406557b5 minor refactor 2017-10-16 20:11:26 +03:00
Alexandru Jercaianu
c8751b245f Fix Issue 4763 - std.stdio.File.open() : more efficient implementation
added safe to setAppendWin
2017-10-08 18:49:55 +03:00
Sebastian Wilzbach
c2d03bf754 Issue 16984 - Make std.stdio runnable 2017-10-05 21:30:13 +02:00
The Dlang Bot
416e0c76cd Merge pull request #5676 from RazvanN7/Unused_vars_part3
Get rid of unused variables part3
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-09-09 10:09:53 +02:00
MetaLang
2439463ca4 Remove trailing whitespace 2017-09-06 15:56:38 -03:00
MetaLang
351ddd186b Switch to using a named enum 2017-09-06 15:52:07 -03:00
MetaLang
3d00ff675e Add missing colon to enum declaration 2017-09-06 12:48:20 -03:00
MetaLang
2058363a09 makeGlobal: Use an enum instead of magic numbers 2017-09-06 12:40:41 -03:00
Walter Bright
2326af4135 stdio: remove reliance on std*** being aliasable 2017-09-02 02:45:18 -07:00