David Nadlinger
5099cf7fad
Fix std.file on OS X x86_64.
...
The previous translation of struct_stat64 did not account for LP64 changes in C types.
2011-11-12 22:14:09 +01:00
k-hara
d26c719634
Issue 6902 - Different "pure nothrow int()" types
2011-11-12 13:59:50 +09:00
David Simcha
0ee6a1afbd
Merge pull request #315 from MaksimZh/fix-6888
...
Fix issue 6888.
2011-11-09 20:34:33 -08:00
David Nadlinger
0c15936c23
Build fix for OS X (fixes IPPROTO_RAW, … std.socket ambiguity errors).
...
Fixes the socket symbol ambiguities by importing the same symbols from std.c.osx.socket as done on Linux from std.c.linux.socket.
Test suite still not green due to std.regex/FReD breakage.
2011-11-07 22:44:42 +01:00
Jonathan M Davis
f4616f887e
Merge pull request #299 from dawgfoto/master
...
UTF decoding optimizations
2011-11-07 02:00:37 -08:00
k-hara
89b986a855
Fix std.traits.isAbstractFunction breaking
2011-11-07 18:17:46 +09:00
Maksim Zholudev
180839bc10
Unittest for bugzilla 6888.
2011-11-07 08:11:55 +01:00
dawg
1b0edb728c
optimize std.utf.decode
...
- Use fast path tests for non-complex unicode sequences that can be
inlined. These rely on the built-in array bounds check.
- Factor out complex cases into separate functions that do exception
based validity checks. The char[] and wchar[] versions use
pointers to avoid redundant array bounds checks, thus they can only
be trusted.
- Complete rewrite of decode for char[] to use less branching and
unrolled loops. This requires less registers AND less instructions.
The overlong check is done much cheaper on the code point.
- The decode functions were made templates to short circuit the very
restricted function inlining possibilities.
2011-11-07 07:16:37 +01:00
David Simcha
4546b3a493
Merge pull request #318 from denis-sh/templates-improvement
...
Templates improvement
2011-11-06 14:58:38 -08:00
David Simcha
8204fd26e4
Merge pull request #320 from simendsjo/master
...
Removed some old workarounds for resolved bugs
2011-11-06 14:52:32 -08:00
simendsjo
fdca5dde0d
Bug 4414 has been fixed
2011-11-06 17:01:17 +01:00
simendsjo
db8a7b4e51
Bug 2128 has been resolved
2011-11-06 16:53:23 +01:00
simendsjo
f0502b99df
Bug 1904 has been fixed. Might brake existing code.
2011-11-06 16:43:04 +01:00
simendsjo
1e9994f7c3
The comment type //:::// confuses the vim syntax plugin making it very difficult to work with the file.
2011-11-06 15:55:37 +01:00
Denis Shelomovskij
064fc770d8
Get rid of fixed bugs mentions in std.traits
...
Workarounds removed for 4217, 4333, 2509
Mentioning removed for 4732, unittest is added instead
Corrected bug number from 2234 to 2997
2011-11-06 12:06:55 +03:00
jmdavis
25df7d748b
Fix build breakage due to std.zlib changes.
2011-11-06 01:01:31 -08:00
Jonathan M Davis
a627abd391
Merge pull request #310 from blackwhale/fred-regex
...
FReD, replacement engine for std.regex
2011-11-06 01:52:04 -07:00
Jonathan M Davis
0486a0853c
Merge pull request #303 from redstar/zlib
...
Small fixes to std.zlib.
2011-11-06 01:50:20 -07:00
Denis Shelomovskij
0c760dabd4
std.traits.FunctionTypeOf and isSomeFunction fixes to support nested @property functions
2011-11-06 11:03:57 +03:00
Vladimir Panteleev
94850c1cb5
std.conv: Fix to!float("-0")
2011-11-05 23:31:29 +02:00
Denis Shelomovskij
6e88523269
std.typetuple.isSame fix
2011-11-05 13:57:40 +03:00
Maksim Zholudev
fe1c21d04d
Fix issue 6888.
2011-11-04 08:23:42 +01:00
Hara Kenji
4f085eca7f
Merge pull request #291 from NilsBossung/master
...
make to!(dstring) work with structs
2011-11-03 16:51:01 -07:00
Nils Boßung
a54503556b
add a unittest for the conversion from typedef to another string type than string
2011-11-03 20:23:23 +01:00
Andrei Alexandrescu
276c84c574
Merge pull request #304 from kyllingstad/path-improvements
...
std.path improvements
2011-11-03 08:54:40 -07:00
shoo
b3f5e396cf
Fixed issue 6887
...
http://d.puremagic.com/issues/show_bug.cgi?id=6887
2011-11-03 23:35:46 +09:00
Nils Boßung
d64af831d0
convert the default value to T instead of using string as type
2011-11-02 18:34:43 +01:00
Nils Boßung
e6ff8ca7f2
Merge branch 'master' of git://github.com/D-Programming-Language/phobos
...
Conflicts:
std/conv.d
2011-11-02 18:25:52 +01:00
Lars T. Kyllingstad
2c682cf0c1
Remove unsafe casts in std.path
2011-11-01 08:04:18 +01:00
Lars T. Kyllingstad
4c4c46b578
Revert "Change basename() to @trusted until 6169 is fixed"
...
This reverts commit 081113c024
.
2011-11-01 07:54:00 +01:00
Dmitry Olshansky
8d6852f221
fix build bug on win32
2011-11-01 01:57:30 +04:00
Dmitry Olshansky
f25319b3b0
replace std.regex with FReD
2011-11-01 01:15:51 +04:00
Lars T. Kyllingstad
081113c024
Change basename() to @trusted until 6169 is fixed
2011-10-31 17:55:42 +01:00
Andrei Alexandrescu
3d68580149
Merge pull request #294 from jmdavis/file
...
Adjustments to std.file.readLink for issue 6814.
2011-10-30 17:20:05 -07:00
Andrei Alexandrescu
4d8c6a1f7f
Merge pull request #260 from CyberShadow/new-std-socket
...
std.socket cleanup
2011-10-30 17:03:41 -07:00
Andrei Alexandrescu
85c3586e9c
Merge pull request #236 from 9rnsr/common_format
...
to!SomeString should use formatValue
2011-10-30 17:01:40 -07:00
Andrei Alexandrescu
ce1501860f
Merge pull request #301 from 9rnsr/fix_typeof_super
...
Supplemental changes of dmd/pull/475 - Issue 6847 & 6848 - Fix special cases of typeof(super)
2011-10-30 15:23:43 -07:00
David Simcha
c62c4d0ec1
Merge pull request #308 from dawgfoto/numeric
...
flag findRoot delegates as scope
2011-10-30 13:46:26 -07:00
dawg
2ab1f6d304
flag findRoot delegates as scope
2011-10-30 21:42:32 +01:00
David Simcha
376361dd9e
Merge pull request #306 from 9rnsr/fix5193
...
Issue 5193 - SList cannot have struct elements that have immutable members.
2011-10-30 13:34:27 -07:00
dawg
f37038c586
spurious variable in StopWatch.start
2011-10-30 21:19:48 +01:00
k-hara
fd3184f88a
Issue 5193 - SList cannot have struct elements that have immutable members.
2011-10-28 23:20:23 +09:00
Lars T. Kyllingstad
4ddeee1712
Failing CTFE tests still fail, but for new reasons
2011-10-27 22:28:10 +02:00
Lars T. Kyllingstad
bc3db761fa
std.path: more @safe, pure and nothrow annotations
...
There are still a few left which cannot be enabled due to compiler bugs
or other parts of Phobos not being correctly annotated, but we're
getting there. ;) The remaining ones are all clearly marked with TODO
comments.
2011-10-27 22:10:25 +02:00
Lars T. Kyllingstad
8de508a968
Apply inout to std.path
...
Unfortunately, I was unable to do so for dirName() due to its
first statement:
enum currentDir = cast(C[]) ".";
The reason is that it is not possible to create an enum of an
inout type.
2011-10-27 21:47:12 +02:00
Lars T. Kyllingstad
41ee5a2cb8
Make std.traits.Unqual handle inout
2011-10-27 21:46:13 +02:00
kai
e04c1284ce
Small fixes to std.zlib.
...
1) The output was broken when running the unittest with debug=zlib.
2) If the output buffer was too small then uncompress() repeated the process with a bigger buffer. Now the buffer is simply expanded and the uncompression continued.
3) Added a unit test to check that the buffe expansion from 2) works.
2011-10-27 06:56:29 +02:00
Laurie Clark-Michalek
41c4d79a71
Fixed typo in documentation for dice function in std.random
2011-10-27 01:30:27 +02:00
k-hara
4bba7d6658
Fix for typeof(super) bug.
...
Related to: https://github.com/D-Programming-Language/dmd/pull/475
2011-10-25 15:07:49 +09:00
jmdavis
6fddf34157
Adjustments to std.file.readLink for issue 6814.
...
http://d.puremagic.com/issues/show_bug.cgi?id=6814
2011-10-23 23:34:49 -07:00