Commit graph

641 commits

Author SHA1 Message Date
Jack Stouffer
dc8ed10db7 Fixed local imports in std.stdio 2016-07-01 15:35:43 -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
Steven Schveighoffer
d0291d7031 Merge pull request #4424 from KevinBrogan/msvc_fix_missing_alias
Add two missing alias definitions setmode and fileno for version (MICROSOFT_STDIO)
2016-06-15 11:48:21 -04:00
Jack Stouffer
54bf7cf39e Removed commeted out code and outdated comments 2016-06-11 12:06:42 -04:00
Kevin Brogan
af2cf2849e Add two missing alias definitions setmode and fileno for version (MICROSOFT_STDIO) 2016-06-10 19:07:24 -07:00
Sebastian Wilzbach
a37a5a9896 Fix more 404s links 2016-06-06 04:29:23 +02:00
Joakim
a839be6dcc Fix five modules where imports were made more local and selective. 2016-06-04 00:09:48 +05:30
Jack Stouffer
92eed4f45e Warn about Issue 15768 2016-06-03 11:12:11 -04:00
Sebastian Wilzbach
ca098c57d2 manual allman brace fixup 2016-05-31 13:07:53 +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
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
641d6ff8d7 clean up remaining XREFs (manual)
Found by: grep -r '$(XREF'

std.experimental.allocator has a custom XREF2. Leaving that as is for now.
2016-05-27 21:40:46 +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
Dmitry Olshansky
b173b32969 Merge pull request #4361 from joakim-noah/imports
std.math and std.stdio: use more selective imports
2016-05-27 13:26:46 +04:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Joakim
11d3bf6b57 For std.math and std.stdio, use more selective imports and document the current symbols imported at the module level, done by checking with ddmd. 2016-05-26 01:11:11 +05:30
Joakim
d965b1aa64 Fix Android regressions: make sure all tests don't use the local directory and no unzip 2016-05-16 21:57:17 +05:30
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
Dmitry Olshansky
8ff1f0ef52 Merge pull request #4079 from greenify/stdio_byrecord
document std.stdio.byRecord
2016-03-28 15:24:13 +04:00
Sebastian Wilzbach
fc2099dc11 document std.stdio.byRecord 2016-03-27 22:31:05 +03:00
JakobOvrum
99651dc92e Merge pull request #2011 from CyberShadow/fix12368
fix Issue 12368 - std.file.write conflicts with std.stdio.write
2016-03-28 03:10:23 +09:00
Vladimir Panteleev
c697f64640 std.stdio: Fix style nits 2016-03-27 08:52:27 +00:00
JakobOvrum
f12b78ec40 Merge pull request #4053 from greenify/stdio_doc
std.stdio: add unittest examples to doc output
2016-03-18 05:44:26 +09:00
Sebastian Wilzbach
afe493d3bd std.stdio: add unittest examples to doc output 2016-03-13 19:50:05 +02:00
Jonathan M Davis
c08032edd4 Merge pull request #4068 from nrTQgc/netbsd_patch
netbsd patch
2016-03-10 22:04:53 -08:00
Nikolay Tolstokulakov
eff74ed2a2 netbsd patch 2016-03-11 10:10:47 +06:00
H. S. Teoh
4f7d8a2243 Merge pull request #4071 from CyberShadow/pull-20160310-234514
std.stdio: Fix documentation of File.error
2016-03-10 17:21:51 -08:00
Vladimir Panteleev
cd91d15559 std.stdio: Fix documentation of File.error 2016-03-10 23:45:29 +00:00
Dmitry Olshansky
202565df3d Merge pull request #3828 from CyberShadow/pull-20151124-143559
fix Issue 15377 - std.stdio: Use MSVCRT's _fseeki64 / _ftelli64 on Windows COFF
2016-03-07 17:21:50 +03:00
Steven Schveighoffer
fac1bc22b5 Fix import issues for std.format and std.stdio 2016-02-21 18:58:12 -05:00
Martin Nowak
ce2ac192c9 fix incorrect imports/fqn usages
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
  selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
Jonathan M Davis
c3cd933131 Moving deprecations along.
This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
2016-02-10 16:43:25 -08:00
AndrewEdwards
096480ecc3 Remove deprecated modules and symbols scheduled for removal in 2015 2016-01-27 18:34:07 +09:00
Vladimir Panteleev
458c1ceb35 fix Issue 12379 - Add toFile function which writes its first argument to a file 2016-01-13 12:29:18 +00:00
Vladimir Panteleev
60448be39a std.stdio: Add lockingBinaryWriter 2016-01-13 12:29:08 +00:00
Vladimir Panteleev
34fbe76659 std.stdio: Refactor LockingTextWriter.handle_ field into property 2016-01-13 12:28:49 +00:00
Martin Nowak
e286199645 Merge remote-tracking branch 'upstream/stable'
# Conflicts:
#	win32.mak
#	win64.mak
2016-01-03 15:09:57 +01:00
anonymous
e90edec9b6 fix issue 15429 - [std.stdio] Broken link in documentation 2015-12-09 18:25:28 +01:00
Vladimir Panteleev
7af97f8ccc fix Issue 15377 - std.stdio: Use MSVCRT's _fseeki64 / _ftelli64 on Windows COFF 2015-11-24 14:38:00 +00:00
Lionello Lunesu
be227ef595 Fixed some doc warnings 2015-11-17 09:21:52 +08:00
Dmitry Olshansky
99741241a1 Merge pull request #3698 from WalterBright/fix14861
[REG] fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront()
2015-11-13 10:22:37 +03:00
anonymous
15b550da72 avoid .capacity 2015-11-13 00:36:05 +01:00
anonymous
994d6b8181 fix issue 15293
ReadlnAppender tried to claim the capacity of the passed buffer, calling
assumeSafeAppend on the result so that on the next call it has a capacity
again that can be claimed.

The obvious problem with that: readln would stomp over memory that it has
not been given.

There was also a subtler problem with it (which caused issue 15293):
When readln wasn't called with the previous line, but with the original
buffer (byLine does that), then the passed buffer had no capacity, so
ReadlnAppender would not assumeSafeAppend when slicing the new line from
it. But without a new assumeSafeAppend, the last one would still be in
effect, possibly on a sub slice of the new line.
2015-11-12 20:06:55 +01:00
Jack Stouffer
d085228a43 fix issue 3764 2015-11-03 12:41:39 -05:00
k-hara
59989ed68a fix imports 2015-11-01 23:01:04 +09:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Walter Bright
196f251ff4 fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront() 2015-10-22 16:21:54 -07:00