Commit graph

4242 commits

Author SHA1 Message Date
Lars T. Kyllingstad
aa57a2a161 Renamed File.isPipe to isPopened
Now that std.process will support pipe creation, the name isPipe will
only cause confusion, as it will in fact be false for "normal" anonymous
pipes.  It is only true for files opened by popen(), and its purpose is
simply to ensure they are closed with pclose().
2013-04-30 21:07:33 +02:00
Lars T. Kyllingstad
28abab44cf StdioException: No system error msg when errno==0 2013-04-30 21:05:28 +02:00
Lars T. Kyllingstad
8a95cadf29 Make std.stdio.File 'package' accessible
This is required in the new std.process.
2013-04-30 21:03:56 +02:00
k-hara
43d1196c07 fix Issue 9976 - more compile time algorithms implementation used deep recursion
Reduce instantiation depth in staticMap, allSatisfy, anySatisfy, and Filter.
2013-04-22 15:19:34 +09:00
Alex Rønne Petersen
c277c0751c Merge pull request #1264 from jmdavis/ctype
Remove deprecated std.ctype, std.cpuid, and std.perf.
2013-04-21 04:34:15 -07:00
Andrej Mitrovic
f7d5081570 Merge pull request #1268 from kiith-sa/patch-3
DDoc: file.d: Exceptions thrown (except slurp)
2013-04-20 07:55:35 -07:00
Ferdinand Majerech
b8d98efd2d DDoc (minor): array.d: Appender.shrinkTo throws Exception
Specified that Exception gets thrown (the previous ddoc didn't make sense).
2013-04-20 15:22:56 +03:00
Ferdinand Majerech
7d0f4f665a DDoc: file.d: Exceptions thrown (except slurp)
Added all missing Throws:, with the exception of slurp,
which might throw pretty much anything
(at least Exception, ErrnoException, ConvException, maybe FormatException, gave up on trying to parse all the called code
(main offenders are formattedRead and the File ctor)).
2013-04-19 22:49:56 +03:00
Vladimir Panteleev
16286c045b DDoc tweaks and fixes 2013-04-18 23:49:06 +00:00
jmdavis
30277459e4 Remove deprecated std.ctype, std.cpuid, and std.perf.
These were supposed to have been removed before now.
2013-04-17 23:27:12 -07:00
Andrei Alexandrescu
176976a57b Merge pull request #1238 from denis-sh/add-note-about-Issue-7648
Add note about Issue 7648 to `std.stdio.File`.
2013-04-17 13:13:01 -07:00
Hara Kenji
e45e6cedfe Merge pull request #954 from denis-sh/fix-std.traits.hasElaborateAssign
Fix `std.traits.hasElaborateAssign`
2013-04-17 13:12:34 -07:00
Denis Shelomovskij
d13a02e439 Fix std.traits.hasElaborateAssign for static arrays. 2013-04-17 23:12:09 +04:00
Andrej Mitrovic
9662376798 Merge pull request #1252 from kiith-sa/patch-2
DDoc -std.stdio: exceptions thrown by C-like API.
2013-04-17 08:51:59 -07:00
Andrej Mitrovic
7374ade0e7 Merge pull request #1239 from denis-sh/std.json-improvements-2
Fix issue in `std.json` when `null` is returned instead of empty string/array.
2013-04-17 08:41:37 -07:00
Alex Rønne Petersen
4f7a125392 Merge pull request #1253 from s-ludwig/master
Win64 linking fix for std.c.windows.com
2013-04-13 10:34:40 -07:00
Sönke Ludwig
9025212dcd Use atomicOp instead of InterlockedIncrement to fix Win64 linker errors. 2013-04-13 19:31:51 +02:00
Alex Rønne Petersen
80f80b7cdf Merge pull request #1243 from 9rnsr/fix9431
Issue 9431 - Tuple creation problem with array of array
2013-04-13 10:23:50 -07:00
Alex Rønne Petersen
c642ad4d4e Merge pull request #1256 from redstar/digestcleanup
Cleanup digest source.
2013-04-13 10:19:51 -07:00
kai
81244a242d Fix endian-dependent unit test.
The input to the digest tests is not endian-neutral. This is now
considered. The big endian values were derived by writing the data
into a file and running md5sum and sha1sum with the file as input.
2013-04-13 16:33:43 +02:00
Andrej Mitrovic
0cf38786a7 Merge pull request #1247 from NilsBossung/uniform_enum
fix Issue 9888 - std.random.uniform!enum(generator) fails
2013-04-13 06:53:48 -07:00
kai
f41c576e09 Cleanup digest source.
Removes an unnecessary cast and variable initialization.
2013-04-13 13:22:09 +02:00
Alex Rønne Petersen
60f450b8e6 Merge pull request #1250 from redstar/bigintendian
Fix big endian issue in std.internal.math.biguintcore.d
2013-04-12 05:38:50 -07:00
Alex Rønne Petersen
b4d5139ade Merge pull request #1249 from redstar/digestendian
Fix big endian version of MD5 and RipeMD160.
2013-04-12 05:38:24 -07:00
kai
17f3fe27d5 Fix endian issue in std.bitmanip
BitArray uses an array of size_t elements but opEquals() and opCmp()
cast it to an array of ubyte elements. On a big endian architecture
the bytes are accessed in wrong order.
The solution is to always use size_t elements.
2013-04-12 07:11:56 +02:00
Ferdinand Majerech
402af9d0c4 DDoc -std.stdio: exceptions thrown by C-like API.
Updated documentation for all the C-like member functions \
(and the File ctor) to specify exactly what gets thrown when. 

(note: Exceptions in std.stdio are a mess and should be made 
 more consistent. Also, it seems some member functions that 
 should check if the file is opened do not, but I don't know
 if that might be intentional (as the C functions should fail 
 anyway, resulting in a throw))
2013-04-10 23:36:27 +03:00
Vladimir Panteleev
2e4dbe8623 std.variant: Fix "ditto ditto" documentation bug 2013-04-10 13:21:41 +00:00
kai
6921025c03 Fix endian issues in std.md5
I replaced the methods Encode and Decode with calls to methods
from std.bitmanip. This solves the endian issues.
2013-04-07 15:59:39 +02:00
kai
8f34d9a05e Fix big endian issue in std.internal.math.biguintcore.d
The unit tests passes with this change on Linux/PPC64.
2013-04-07 14:55:29 +02:00
Nils Boßung
4238f5b3ce add an overload for uniform!enum that takes a generator 2013-04-06 23:01:37 +02:00
kai
3bbe15507c Fix big endian version of MD5 and RipeMD160.
Obviously the code has never been run on a big endian architecuture.
With these changes the unit tests passes on Linux/PPC64.
2013-04-06 13:40:44 +02:00
Andrej Mitrovic
ca281295c2 Revert Fix for 7666. 2013-04-05 22:10:23 +02:00
Andrei Alexandrescu
5c2890f23e Merge pull request #1244 from AndrejMitrovic/Fix7666
Issue 7666 - Implement function to reverse fields of a tuple.
2013-04-05 12:37:10 -07:00
Andrej Mitrovic
cc7c5c5ed2 Fixes Issue 7666 - Implement function to reverse fields of a tuple. 2013-04-05 21:21:55 +02:00
k-hara
b80cbad1cc fix Issue 9431 - Tuple creation problem with array of array 2013-04-06 03:23:19 +09:00
Andrej Mitrovic
41561d8cf8 Merge pull request #1233 from 9rnsr/fix9836
Issue 9836 - std.array.popFront does not work with alias this.
2013-04-05 06:56:21 -07:00
k-hara
53640bf046 fix Issue 9836 - std.array.popFront does not work with alias this.
empty, front, popFront, back, popBack should work with alias this type.
2013-04-05 22:33:05 +09:00
Andrej Mitrovic
946d2bc1f1 Merge pull request #1242 from redstar/ripedoc
Fix documentation of std.digest.ripemd
2013-04-05 06:07:30 -07:00
kai
fa96ff8f1f Fix documentation of std.digest.ripemd
Fixes the broken link to the source file and beautifies the reference list.
2013-04-05 13:10:51 +02:00
Denis Shelomovskij
0fe395f178 Fix issue in std.json when null is returned instead of empty string/array. 2013-04-04 00:49:42 +04:00
Denis Shelomovskij
c372571d1f Add note about Issue 7648 to std.stdio.File.
Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=7648
2013-04-03 23:27:29 +04:00
Andrej Mitrovic
113526f6b5 Merge pull request #1206 from denis-sh/std.json-improvements-1
`std.json` refactoring
2013-04-03 12:13:52 -07:00
Don Clugston
32e548d863 Merge pull request #1236 from Safety0ff/bigintenh
BigInt enhancements: add opCast!bool and make std.math.abs work
2013-04-03 07:11:14 -07:00
Denis Shelomovskij
6c17b383df [refactoring] Minor refactoring of std.json. 2013-04-01 17:13:43 +04:00
Denis Shelomovskij
b37673c16d [styling] Put open bracket on its own line in std.json. 2013-04-01 17:13:43 +04:00
Denis Shelomovskij
ef1dd42f82 [whitespace] Fix spaces in std.json. 2013-04-01 17:13:43 +04:00
Denis Shelomovskij
10bd83ebcd [comments] Remove old commented out code in std.json. 2013-04-01 17:13:43 +04:00
safety0ff
8ce364b44f BigInt enhancement: add opCast!bool to BigInt (issue 4120) 2013-03-31 18:54:28 -04:00
safety0ff
835fca54e9 BigInt enhancement: make std.math.abs work with BigInt (issue 6486) 2013-03-31 18:54:15 -04:00
Andrej Mitrovic
320b73a39d Fixes Issue 9839 - Select should be able to select symbols. 2013-03-31 13:06:00 +02:00