1 From e55f355e63ed57005e126e39a9a0338596edfcab Mon Sep 17 00:00:00 2001
2 From: Leandro Lucarella <llucax@gmail.com>
3 Date: Wed, 26 May 2010 20:29:06 -0300
4 Subject: [PATCH 1/4] Fixes to be able to parse the code with Dil
7 tango/core/tools/LinuxStackTrace.d | 2 +-
8 tango/io/stream/Map.d | 2 --
10 tango/text/convert/DateTime.d | 8 --------
11 tango/text/locale/Convert.d | 2 +-
12 tango/text/xml/DocEntity.d | 4 ----
13 6 files changed, 2 insertions(+), 18 deletions(-)
15 diff --git a/tango/core/tools/LinuxStackTrace.d b/tango/core/tools/LinuxStackTrace.d
16 index e69557d..751b572 100644
17 --- a/tango/core/tools/LinuxStackTrace.d
18 +++ b/tango/core/tools/LinuxStackTrace.d
19 @@ -422,7 +422,7 @@ version(linux){
23 - if (string_table && symbs) {
24 + if (string_table.length && symbs.length) {
25 StaticSectionInfo.addGSection(header,string_table,symbs,file[0..strlen(file)]);
28 diff --git a/tango/io/stream/Map.d b/tango/io/stream/Map.d
29 index 2a36027..d07082d 100644
30 --- a/tango/io/stream/Map.d
31 +++ b/tango/io/stream/Map.d
32 @@ -49,13 +49,11 @@ class MapInput(T) : Lines!(T)
33 and rValue pairs from each one, The expected file format is
39 x.y.z = this is a single property
41 # this is a comment line
44 Note that the provided name and value are actually slices
45 and should be copied if you intend to retain them (using
46 diff --git a/tango/net/Uri.d b/tango/net/Uri.d
47 index 60958e9..28fbf51 100644
50 @@ -600,7 +600,6 @@ class Uri : UriView
52 Parsing is performed according to RFC 2396
55 ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
58 @@ -609,7 +608,6 @@ class Uri : UriView
64 This was originally a state-machine; it turned out to be a
65 lot faster (~40%) when unwound like this instead.
66 diff --git a/tango/text/convert/DateTime.d b/tango/text/convert/DateTime.d
67 index 76d6dde..f774acb 100644
68 --- a/tango/text/convert/DateTime.d
69 +++ b/tango/text/convert/DateTime.d
71 formatting is performed (below).
75 http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html
76 http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo(VS.71).aspx
79 ******************************************************************************/
81 @@ -112,7 +110,6 @@ struct DateTimeLocale
82 using the specified layout. The layout can be a generic
83 variant or a custom one, where generics are indicated
84 via a single character:
89 @@ -127,11 +124,9 @@ struct DateTimeLocale
90 "R" = Mon, 30 Mar 2009 19:04:02 GMT
91 "s" = 2009-03-30T19:04:02
92 "u" = 2009-03-30 19:04:02Z
95 For the US locale, these generic layouts are expanded in the
101 @@ -146,15 +141,12 @@ struct DateTimeLocale
102 "R" = "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"
103 "s" = "yyyy'-'MM'-'dd'T'HH':'mm':'ss"
104 "u" = "yyyy'-'MM'-'dd' 'HH':'mm':'ss'Z'"
107 Custom layouts are constructed using a combination of the
108 character codes indicated on the right, above. For example,
109 a layout of "dddd, dd MMM yyyy HH':'mm':'ss zzzz" will emit
112 Monday, 30 Mar 2009 19:04:02 -08:00
115 Using these format indicators with Layout (Stdout etc) is
116 straightforward. Formatting integers, for example, is done
117 diff --git a/tango/text/locale/Convert.d b/tango/text/locale/Convert.d
118 index 440416f..96925c0 100644
119 --- a/tango/text/locale/Convert.d
120 +++ b/tango/text/locale/Convert.d
121 @@ -487,7 +487,7 @@ else
123 *******************************************************************************/
125 -private extern (C) private char* ecvt(double d, int digits, out int decpt, out bool sign);
126 +private extern (C) char* ecvt(double d, int digits, out int decpt, out bool sign);
128 /*******************************************************************************
130 diff --git a/tango/text/xml/DocEntity.d b/tango/text/xml/DocEntity.d
131 index 8803b70..f8c1caf 100644
132 --- a/tango/text/xml/DocEntity.d
133 +++ b/tango/text/xml/DocEntity.d
134 @@ -17,11 +17,9 @@ private import Util = tango.text.Util;
135 /******************************************************************************
137 Convert XML entity patterns to normal characters
144 ******************************************************************************/
146 @@ -95,11 +93,9 @@ T[] fromEntity (T) (T[] src, T[] dst = null)
147 /******************************************************************************
149 Convert XML entity patterns to normal characters
156 This variant does not require an interim workspace, and instead
157 emits directly via the provided delegate