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
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
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
Walter Bright
6eb03eef35
fix lookup of core.stdc.stdio.remove()
2016-02-13 09:54:41 -08:00
Walter Bright
fd5f8476de
fix import shadowing
2016-02-12 03:12:41 -08:00
Jonathan M Davis
61a3a08827
Adjust deprecation messages for std.stream.
2015-09-11 21:29:14 -07:00
Robert burner Schadek
2a4b3971a1
stream deprecation breaks doc building
...
this removes the `deprecated module std.s`
stream needs to go
more messages
2015-09-08 10:20:30 +02:00
Robert burner Schadek
89246736b4
stream deprecation breaks doc building
...
this removes the `deprecated module std.s`
2015-05-29 23:52:43 +02:00
Robert burner Schadek
787637debd
deprecate std.stream and friends
2015-05-28 06:48:28 +02:00
Martin
1082c0c5e7
Don't use MS-specific _vsnprintf, use standard vsnprintf instead.
...
There's an alias in druntime and in MS stdio.h anyway.
2015-05-21 23:47:18 +02:00
Daniel Murphy
1d2a706f4a
Stop using va_argsave now that va_start works correctly without it
2015-01-27 16:17:24 +11:00
Daniel Murphy
4c737a672f
Revert "Merge pull request #2905 from 9rnsr/revert_pull2902"
...
This reverts commit 80f463a1e2
, reversing
changes made to 588c76c19b
.
2015-01-26 04:42:37 +11:00
k-hara
5417836f10
Revert "Merge pull request #2902 from yebblies/typeofva_argsave"
...
This reverts commit f07a77d106
, reversing
changes made to 4bd949406a
.
It's breaking std.outbuffer unittest in Win64 platform.
2015-01-25 06:47:08 +09:00
Daniel Murphy
c19ceb8506
Use presence of __va_argsave to determine if __va_argsave hack is needed
2015-01-25 01:34:32 +11:00
Joakim
093d636de4
Deprecate std.c.* and move all remaining declarations to core.stdc.*
2014-10-14 09:26:21 -05:00
Denis Shelomovskij
ff144b0ae0
Replace most toStringz
/toUTF16z
/toUTFz
usages with tempCString*
ones.
...
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Joakim
60cfc11a11
Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path
2014-08-04 23:33:25 -05:00
Hackerpilot
f40df116e7
Added unittest
2014-07-11 13:26:17 -07:00
Hackerpilot
141a088e37
Fix issue 3363: std.stream.readf segfaults with immutabel format strings
2014-06-02 13:02:13 -07:00
Ben Grabham
b462d98887
fix Issue 7822 - lseek cast(int)offset should be lseek cast(off_t)offset
2014-05-28 01:32:59 +01:00
Daniel Murphy
76878d8c43
Don't assume va_list is void*
2014-05-21 12:19:23 -07:00
Andrej Mitrovic
941e2e31f5
Fix Issue 1726 - Document FileMode in std.stream.
2014-04-24 16:58:10 +02:00
Blake Anderton
f476f47bab
Fixed Issue 1668 std.stream readf can't read int, nan, inf as floats
2014-02-16 09:55:36 -06:00
k-hara
b391b2ec9f
Convert to new alias syntax
2014-02-11 15:27:05 +09:00
Daniel Cousens
18b0a176eb
Updates MemoryStream.reserve DDOC
...
Removes ambiguity as to whether `reserve` is relative to the entire stream or the cursor position.
2013-10-27 15:54:24 +11:00
Walter Bright
e16b2c81e5
fix Issue 10644 - Win64: wrong code when passing arguments through ...
2013-07-19 14:17:32 -07:00
k-hara
a03d00083d
Remained one for 313 & 314
2013-06-25 19:44:35 +09:00
Andrej Mitrovic
6c2e14b60b
Fixes Issue 1397 - Add default argument to buffer size param in ctor.
2012-12-26 03:36:18 +01:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
alexrp
b202180295
Remove all uses of sizediff_t in favor of ptrdiff_t.
2012-10-15 04:24:09 +02:00
jmdavis
27469366a7
Fix modules which incorrectly use std.string's public imports.
...
Now, they should be correctly importing for the functions publicly
imported by std.string so that if those public imports are ever removed,
they won't break.
2012-09-30 03:29:37 -07:00
Johannes Pfau
6ff6adc5bf
Add new hash API
...
* adds the new API used for hashes/digests
* adds new crc & md modules using this API
* deprecate std.md5 & crc32
* update std.stream to use new hash API
2012-09-16 12:25:43 +02:00
Walter Bright
18f7d60f0d
Win64 fixes
2012-09-11 19:39:15 -07:00
Andrei Alexandrescu
9d91e1de2f
Merge pull request #702 from 9rnsr/rev_const
...
Minimal reverting of Issue 1824 - Object not const correct
2012-07-22 21:47:09 -07:00
k-hara
9940579f73
Minimal reverting of Issue 1824 - Object not const correct
2012-07-22 15:21:51 +09:00
Iain Buclaw
acf76f2a4f
Add unittest to TArrayStream to test printf does not SEGV
2012-07-19 18:27:44 +01:00
Iain Buclaw
7688e08b03
Fix cstream.printf() on x86_64.
2012-07-19 12:56:07 +01:00
k-hara
9d1809206f
Fix for const Object comparison
2012-07-09 07:38:48 +09:00
jmdavis
940059bbc8
Revert "Deprecate crc32 and move it into std.hash.crc32."
...
This reverts commit d6c2ef0fb6
.
These changes are valuable, but after further discussion, we've decided
to review how std.hash looks in general and redesign it, so getting
people to switch from crc32 to std.hash.crc32 will only mean that
they'll have to change their code _again_ once we've sorted out the
std.hash redesign, and we don't want that. So, I'm reverting these
changes for now, and they can become part of the std.hash redesign.
2012-06-25 03:06:15 -07:00
Jonathan M Davis
1709984af6
Merge pull request #608 from jmdavis/xml
...
Added warnings of future deprecation to modules that will be replaced.
2012-06-05 23:26:57 -07:00
alexrp
d6c2ef0fb6
Deprecate crc32 and move it into std.hash.crc32.
2012-06-06 07:48:47 +02:00
jmdavis
7fd793e177
Added warnings of future deprecation to modules that will be replaced.
...
All of these modules are currently planned to be replaced in their
entirety, so it seems wise to have warnings about that.
2012-05-28 14:08:20 -07:00
Walter Bright
8fda49a93b
more nothrow
2012-04-06 16:26:42 -07:00
David Herberth
346871df2c
std.stream.EndianStream readStringW fix
2012-03-08 22:51:05 -08:00
Andrei Alexandrescu
49e4bb0ef0
Merge pull request #406 from denis-sh/get-rid-of-win9x-support
...
Get rid of win9x support
2012-02-18 12:32:37 -08:00
Walter Bright
786284e70b
more const correct
2012-02-17 15:00:49 -08:00
Denis Shelomovskij
99ab2b6175
Remove __file.d and it's using
...
* remove `useWfuncs` using
* remove std.__file using
* remove __file.d
* remove variables which have become unnecessary
* remove std.windows.charset import and alias in file.d
2012-02-10 14:27:34 +04:00
Walter Bright
f3aa58592f
make invariants const-correct
2012-01-29 14:03:39 -08:00
Daniel Green
58f4356ca2
Change version( Win32 ) to version( Windows ) when Win64 would be supported as well.
2012-01-16 22:10:18 -05:00