Nick Treleaven
66c8a77956
Note that readln() cannot support string terminators
2014-07-25 12:41:25 +01:00
Nick Treleaven
ddad09bbea
Recommend using portable std.ascii.newline for line terminator
...
Also document 'lines' constructor.
2014-07-23 15:21:31 +01:00
Михаил Страшун
4f81791438
Merge pull request #2334 from quickfur/issue8730
...
std.stdio.writeln should write strings with embedded nulls correctly
2014-07-17 18:51:34 +02:00
Tomoya Tanjo
45fc2a6cf9
Make std.stdio.File.LockingTextWriter.put safe
2014-07-16 11:35:30 +09:00
Steven Schveighoffer
3cd7afcb1b
Merge pull request #2330 from joakim-noah/strerror_move
...
Deprecate std.c.string and move its contents to druntime
2014-07-15 16:10:14 -04:00
H. S. Teoh
94942605d2
Update unittest to check for correct writing of embedded nulls.
2014-07-15 07:53:00 -07:00
H. S. Teoh
e162b2a0d5
Don't use fprintf to output D strings since they might contain embedded nulls.
...
Instead, use fwrite to output the string in its entirety. It's probably
more efficient this way anyway, since we bypass format string parsing in
fprintf.
2014-07-15 07:52:59 -07:00
Михаил Страшун
9c41595977
Merge pull request #2077 from ntrel/byLineCopy
...
Fix Issue 12556 - Add persistent stdio.File.byLine
2014-07-14 15:45:58 +03:00
Nick Treleaven
73da5d20b0
Indent parameters
2014-07-14 12:04:53 +01:00
Joakim
dc67efc3c4
Deprecate std.c.string and move its contents to druntime
2014-07-13 12:47:26 -05:00
Михаил Страшун
3ee34072a6
Merge pull request #2150 from joakim-noah/android
...
Get tests passing on Android/x86
2014-07-12 04:05:07 +03:00
Михаил Страшун
b1bfdb6e01
Merge pull request #2319 from tom-tan/safe-unittest-for-stdio-File-error-File-detach-File-flush
...
Mark unittests for std.stdio.File.error, detach and flush as safe
2014-07-11 15:15:17 +03:00
Tomoya Tanjo
abc3d14e7a
Mark std.stdio.lockingTextWriter.this as safe
2014-07-11 12:57:08 +09:00
Tomoya Tanjo
c7fb2f291b
Mark unittests for std.stdio.File.error, detach and flush as safe
2014-07-11 11:55:35 +09:00
Joakim
11de397dd7
Start getting tests passing on Android/x86
2014-07-09 17:52:15 -05:00
k-hara
6e9e153075
Fix issue 12859 again
...
The direct pushing by Andrew Edwards had accidentally reverted regression fix.
2014-06-30 11:03:15 +09:00
AndrewEdwards
49a170fdc1
Revert "Update stdio.d"
...
This reverts commit dbdcb2b996
.
2014-06-30 01:49:05 +09:00
AndrewEdwards
571056369b
Merge branch 'master' of https://github.com/AndrewEdwards/phobos
2014-06-30 01:36:56 +09:00
AndrewEdwards
dbdcb2b996
Update stdio.d
...
Eliminate use of deprecated read-modify-write operation on shared variable.
2014-06-29 16:06:15 +09:00
k-hara
8ab7ceebd9
fix Issue 12859 - Read-modify-write operation for shared variable in Phobos
2014-06-29 15:47:45 +09:00
jmdavis
c800058aca
Move along some overdue deprecations.
2014-06-20 04:37:13 -07:00
k-hara
814d47382b
Revert "Merge pull request #2225 from tom-tan/trusted-stdio-LockingTextWriter-put"
...
It broke win32 build.
This reverts commit dc0b441bb1
, reversing
changes made to 285d027677
.
2014-06-17 18:37:59 +09:00
Tomoya Tanjo
b977ea3539
Add static keyword to trustedFPUTC/trustedFPUTWC
2014-06-17 17:43:59 +09:00
Tomoya Tanjo
018c3b060f
Make trustedFPUTC and trustedFPUTWC static
2014-06-11 18:36:58 +09:00
Tomoya Tanjo
80737ad97d
Make trustedFwrite static
2014-06-10 03:34:19 +09:00
Tomoya Tanjo
f4caebce1a
Make std.stdio.LockingTextWriter.put and lockingTextWriter @safe
2014-06-03 12:02:48 +09:00
Tomoya Tanjo
ae1a24ecfb
Mark std.stdio.LockingTextWriter.this, ~this and this(this) as @trusted
2014-05-31 22:31:12 +09:00
Tomoya Tanjo
e7ada48604
Mark std.stdio.File.tmpfile, wrapFile and size as @safe
2014-05-31 03:35:34 +09:00
Tomoya Tanjo
f6eb0ad97f
Mark std.stdio.File.seek as @trusted
2014-05-30 12:07:16 +09:00
Nick Treleaven
7c4e7f5c62
Clarify when to use byLineCopy vs byLine
2014-05-27 12:41:22 +01:00
monarch dodra
9744c9198b
Merge pull request #2184 from WalterBright/annotate-stdio
...
std.stdio: annotate C functions
2014-05-22 10:47:36 +02:00
Daniel Murphy
76878d8c43
Don't assume va_list is void*
2014-05-21 12:19:23 -07:00
Walter Bright
0732a612be
std.stdio: annotate C functions
2014-05-19 10:35:56 -07:00
Walter Bright
834ed6e0a8
Merge pull request #2083 from tom-tan/master
...
Mark std.stdio.File.fdopen as safe and trusted
2014-05-15 21:32:05 -07:00
Andrej Mitrovic
3f4fde2002
Merge pull request #2139 from monarchdodra/sortedrange
...
Fix Issue 9616 - SortedRange should support all range kinds
2014-05-01 20:03:20 +02:00
Nick Treleaven
adafe1986c
Fix caching byLineCopy.front (oops)
2014-04-18 12:22:30 +01:00
Tomoya Tanjo
ecaf000342
Mark std.stdio.File.fdopen as safe and trusted
2014-04-17 06:13:27 +08:00
Nick Treleaven
5d7e008b32
Make byLineCopy support mutable line copies
2014-04-14 13:09:38 +01:00
Nick Treleaven
22edb2ed36
Fix Issue 12556 - Add persistent byLine
2014-04-14 13:09:36 +01:00
Nick Treleaven
fb088fa08a
Don't wrap testTerm() with default arguments
...
The code is clearer without the extra function and with explicit
arguments.
2014-04-11 11:54:57 +01:00
Andrei Alexandrescu
8366c67d9e
Fix Issue 9616 - SortedRange should support all range kinds
2014-03-23 00:49:41 -07:00
Tomoya Tanjo
afbe687850
Mark std.stdio.File.this, opAssign, open and popen as safe
2014-03-19 22:39:20 +07:00
Tomoya Tanjo
d7f5c1f287
Mark std.stdio.fopen and popen as trusted
2014-03-19 20:23:50 +07:00
Andrej Mitrovic
b99ed6cc3d
Merge pull request #1984 from Poita/bug11698
...
Fix Issue 11698 - readf doesn't work with bool
2014-03-13 20:07:43 +01:00
k-hara
e49f6a096c
Add more local imports
2014-03-13 17:29:38 +09:00
Hara Kenji
0bc524f431
Merge pull request #2006 from 9rnsr/fix_imports
...
Add more local imports
2014-03-13 16:27:45 +09:00
k-hara
c5e8571009
Add more local imports
2014-03-13 15:27:55 +09:00
Tomoya Tanjo
b1b2fa9b39
Mark std.stdio.File.~this and detach as @safe
2014-03-13 14:32:04 +09:00
Andrei Alexandrescu
6a95f08826
Merge pull request #2003 from tom-tan/trusted-std-stdio-File-close
...
Mark std.stdio.File.close as @trusted
2014-03-12 22:19:45 -07:00
Tomoya Tanjo
2efab5a5d5
Mark std.stdio.File.close as @trusted
2014-03-13 14:12:58 +09:00