Commit graph

124 commits

Author SHA1 Message Date
Andrei Alexandrescu
b7f42ec925 Hello, world release mode after strip reduced from 700KB to 220KB 2011-12-15 20:40:39 -06:00
David Nadlinger
62872423cb Make sure LockingTextReader is an input range. 2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Dmitry Olshansky
8d6852f221 fix build bug on win32 2011-11-01 01:57:30 +04:00
Brad Roberts
4aded5d345 break std.random's dependency on std.datetime 2011-10-02 23:37:55 -07:00
Jonathan M Davis
9b411851ba Merge pull request #278 from Abscissa/splitLinesKeepTerm
Add optional KeepTerminator param to splitLines.
2011-09-29 21:49:16 -07:00
k-hara
78a2d8abdc Reduce module dependencies. 2011-09-29 07:09:16 +09:00
Abscissa
bb8ff27256 std.stdio.File.KeepTerminator and std.string.KeepTerminator should be the same type. 2011-09-27 14:00:39 -04:00
dsimcha
3d0f0ea448 Apparently core.memory still needs to be in the std.stdio imports. 2011-07-18 22:54:40 -04:00
KennyTM~
df4e92d712 (Minor cleanup) Change some idiomic GC.malloc usage to uninitializedArray
Simplify the common pattern `(cast(T*)GC.malloc(T.sizeof * n, NO_SCAN))[0 .. n]` to the new function `uninitializedArray!(T[])(n)`.

Note that there was some `NO_SCAN` attributes originally determined at runtime using `typeid()`, but now is determined statically using `hasIndirection!()` from the implementation of `uninitializedArray`.
There were also some `GC.malloc` usage looks like `uninitializedArray` in `std.parallelism` but I'm leaving it alone for someone who is more familiar with this module ;).
2011-07-14 04:29:34 +08:00
Andrei Alexandrescu
ee5c3a39e5 Fixed http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=139182 and unlisted bug in std.stdio.write 2011-06-21 09:41:59 -05:00
Andrei Alexandrescu
0812b4f505 Faster and smaller write/writeln for integrals 2011-06-06 22:18:33 -05:00
andralex
7f154259fa fix bugzilla 3752 2011-06-05 21:12:55 -05:00
Andrei Alexandrescu
9dd0e63250 Merged mothership 2011-05-10 19:17:06 -05:00
Andrei Alexandrescu
2bc502ae84 Added std.log 2011-05-10 19:15:00 -05:00
Andrei Alexandrescu
0c82bba5a0 Added unittest code to remove the testingByLine executable upon successful completion 2011-05-01 11:42:48 -05:00
Andrei Alexandrescu
a474a386d4 Fix for bug 4922 2011-01-22 06:35:11 +00:00
Andrei Alexandrescu
1420a8f09d unittest cleans after itself 2011-01-09 07:25:27 +00:00
Andrei Alexandrescu
36112efd02 Added size property to File 2011-01-09 06:58:12 +00:00
Andrei Alexandrescu
86a080f056 Fixed unlisted bug in readf 2010-12-24 03:05:42 +00:00
Masahiro Nakagawa
36dd6b3007 Add ByChunk to std.stdio.File 2010-10-11 21:59:08 +00:00
Shin Fujishiro
df582acd89 Fix (build failure): no pclose() on Windows 2010-09-27 04:02:55 +00:00
Andrei Alexandrescu
a50363c605 Fix for bugzilla 3157 2010-09-27 01:11:25 +00:00
Walter Bright
3b0c94b1c9 giving source link a try 2010-09-11 20:08:39 +00:00
Steven Schveighoffer
9eb8c37d5a Fixed issue with readln not returning data when EOF is encountered. 2010-08-27 17:26:38 +00:00
Steven Schveighoffer
7e89201cda Rewrote Appender to be safer and to not corrupt memory.
Fixed all places that use appender to use the safer interface.
bugzilla 4681: Appender access violation
2010-08-26 11:49:50 +00:00
Shin Fujishiro
190c622030 Fixed std.stdio build problem on FreeBSD.
Moved `import core.sys.posix.stdio;` from version(OSX) to version(Posix) since now fseeko() is used on all Posix systems.
2010-08-26 06:05:56 +00:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00
Andrei Alexandrescu
b2a36396f1 Reverted to 32-bit file routines for Windows; we need to distribute libcmt.lib for 64-bit support. 2010-08-17 16:41:23 +00:00
Andrei Alexandrescu
cad40e5902 Now large files work with both osx and linux 2010-08-17 15:26:04 +00:00
Andrei Alexandrescu
5f354415b7 seek and tell for large files on OSX using seeko and tello 2010-08-17 15:06:34 +00:00
Andrei Alexandrescu
72d9fa0764 seek and tell for large files on OSX 2010-08-17 07:08:56 +00:00
Andrei Alexandrescu
3eb9454c78 Fixed seek and tell for large files 2010-08-16 20:07:12 +00:00
Adam D. Ruppe
b9ea97d6e7 Changed code style of new openNetwork function to be more Phobos like 2010-08-14 17:54:02 +00:00
Adam D. Ruppe
3dedd2253e commiting my first attempt at network support in the File interface. 2010-08-14 17:12:35 +00:00
Andrei Alexandrescu
f8d81d171e Removed obsolete comments and tabs that suck 2010-08-08 17:34:25 +00:00
Walter Bright
73a1aec0bd fix deadlock 2010-08-08 07:37:51 +00:00
Don Clugston
f4cf1fe01a Prevent tuple indexing error message when you call writefln() with no parameters 2010-07-27 07:31:00 +00:00
Andrei Alexandrescu
67bae48bec Eliminated unittests for built-in complex. 2010-07-12 00:51:02 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Andrei Alexandrescu
9f1ec363bb Implemented readf (yay) 2010-07-04 21:49:23 +00:00
Andrei Alexandrescu
fffb5555e6 Fixed writeln() regression 2010-06-10 18:50:29 +00:00
Andrei Alexandrescu
4beb6c3d0e Fixed writeln() regression 2010-06-10 18:49:11 +00:00
Andrei Alexandrescu
2a81e69d86 Changed writeln to handle strings as a special case and just forward them to printf. Also writeln is special-cased for no arguments to use fputc. 2010-06-09 19:35:26 +00:00
Andrei Alexandrescu
38a75a6e41 Added an error message to enforce() in rawRead(). 2010-06-08 17:41:13 +00:00
Masahiro Nakagawa
adf941f657 Replace static opCall with Constructor. static opCall for struct construction is old style. 2010-06-01 19:44:00 +00:00
Shin Fujishiro
4be7abb7f2 Made rawRead/rawWrite always operate in binary mode on Windows. 2010-05-29 06:00:53 +00:00
Masahiro Nakagawa
cab2b77249 opApply's delegate needs to be 'scope' for avoiding heap allocation 2010-05-18 10:58:01 +00:00
Shin Fujishiro
4e2d8f30fd Added FreeBSD code. 2010-05-17 03:02:16 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00