Commit graph

524 commits

Author SHA1 Message Date
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
RazvanN7
55120ef91a Get rid of unused variables 2017-08-22 11:00:14 +03: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