Skip to content

Commit 1e1eed8

Browse files
committed
---
yaml --- r: 50154 b: refs/heads/auto c: 9aa0ced h: refs/heads/master v: v3
1 parent 88a44b3 commit 1e1eed8

File tree

5 files changed

+162
-109
lines changed

5 files changed

+162
-109
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: d60a7259f9f7855aefac17596f66bc4c863dfe7a
17+
refs/heads/auto: 9aa0cedc84792e711f49951a2dfdc9f1586d5d38
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/configure

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,17 @@ validate_opt () {
136136
isArgValid=1
137137
fi
138138
done
139-
if test $isArgValid -eq 0
139+
if [ "$arg" = "--help" ]
140140
then
141-
err "Option '$arg' is not recognized"
141+
echo ""
142+
echo "No more help available for Configure options,"
143+
echo "check the Uncyclo or join our IRC channel"
144+
break
145+
else
146+
if test $isArgValid -eq 0
147+
then
148+
err "Option '$arg' is not recognized"
149+
fi
142150
fi
143151
done
144152
}
@@ -266,13 +274,42 @@ case $CFG_OSTYPE in
266274
MINGW32*)
267275
CFG_OSTYPE=pc-mingw32
268276
;;
277+
# Thad's Cygwin identifers below
278+
279+
# Vista 32 bit
280+
CYGWIN_NT-6.0)
281+
CFG_OSTYPE=pc-mingw32
282+
CFG_CPUTYPE=i686
283+
;;
284+
285+
# Vista 64 bit
286+
CYGWIN_NT-6.0-WOW64)
287+
CFG_OSTYPE=w64-mingw32
288+
CFG_CPUTYPE=x86_64
289+
;;
290+
291+
# Win 7 32 bit
292+
CYGWIN_NT-6.1)
293+
CFG_OSTYPE=pc-mingw32
294+
CFG_CPUTYPE=i686
295+
;;
269296

297+
# Win 7 64 bit
298+
CYGWIN_NT-6.1-WOW64)
299+
CFG_OSTYPE=w64-mingw32
300+
CFG_CPUTYPE=x86_64
301+
;;
302+
303+
# We do not detect other OS such as XP/2003 using 64 bit using uname.
304+
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
270305
*)
271306
err "unknown OS type: $CFG_OSTYPE"
272307
;;
273308
esac
274309

275310

311+
if [ -z "$CFG_CPUTYPE" ]
312+
then
276313
case $CFG_CPUTYPE in
277314

278315
i386 | i486 | i686 | i786 | x86)
@@ -290,6 +327,7 @@ case $CFG_CPUTYPE in
290327
*)
291328
err "unknown CPU type: $CFG_CPUTYPE"
292329
esac
330+
fi
293331

294332
# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
295333
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]

branches/auto/src/libcore/trie.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
use prelude::*;
1414

15+
// FIXME: #3469: need to manually update TrieNode when SHIFT changes
1516
// FIXME: #5244: need to manually update the TrieNode constructor
1617
const SHIFT: uint = 4;
1718
const SIZE: uint = 1 << SHIFT;
@@ -161,15 +162,12 @@ pub struct TrieSet {
161162

162163
impl BaseIter<uint> for TrieSet {
163164
/// Visit all values in order
164-
#[inline(always)]
165165
fn each(&self, f: &fn(&uint) -> bool) { self.map.each_key(f) }
166-
#[inline(always)]
167166
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
168167
}
169168

170169
impl ReverseIter<uint> for TrieSet {
171170
/// Visit all values in reverse order
172-
#[inline(always)]
173171
fn each_reverse(&self, f: &fn(&uint) -> bool) {
174172
self.map.each_key_reverse(f)
175173
}
@@ -191,7 +189,7 @@ impl Mutable for TrieSet {
191189
fn clear(&mut self) { self.map.clear() }
192190
}
193191

194-
pub impl TrieSet {
192+
impl TrieSet {
195193
/// Create an empty TrieSet
196194
#[inline(always)]
197195
fn new() -> TrieSet {
@@ -217,7 +215,7 @@ pub impl TrieSet {
217215

218216
struct TrieNode<T> {
219217
count: uint,
220-
children: [Child<T> * SIZE]
218+
children: [Child<T> * 16] // FIXME: #3469: can't use the SIZE constant yet
221219
}
222220

223221
impl<T> TrieNode<T> {
@@ -303,6 +301,7 @@ fn insert<T>(count: &mut uint, child: &mut Child<T>, key: uint, value: T,
303301
added = insert(&mut x.count, &mut x.children[chunk(key, idx)], key,
304302
value, idx + 1);
305303
Internal(x)
304+
306305
}
307306
Nothing => {
308307
*count += 1;

branches/auto/src/libstd/priority_queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub impl <T:Ord> PriorityQueue<T> {
112112
while end > 1 {
113113
end -= 1;
114114
q.data[end] <-> q.data[0];
115-
q.siftdown_range(0, end)
115+
unsafe { q.siftdown_range(0, end) } // purity-checking workaround
116116
}
117117
q.to_vec()
118118
}
@@ -126,7 +126,7 @@ pub impl <T:Ord> PriorityQueue<T> {
126126
let mut n = q.len() / 2;
127127
while n > 0 {
128128
n -= 1;
129-
q.siftdown(n)
129+
unsafe { q.siftdown(n) }; // purity-checking workaround
130130
}
131131
q
132132
}

0 commit comments

Comments
 (0)