aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
committerGraydon Hoare <[email protected]>2010-09-09 15:59:29 -0700
commita9e2327a18e782df524c14dc42910d61a4785324 (patch)
tree8763224ac3a4c11275dd64257aac47036c97c48d /src/comp/util
parentFixed lost signal notifications. (diff)
downloadrust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz
rust-a9e2327a18e782df524c14dc42910d61a4785324.zip
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 9bcb67b2..b3e85ac3 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -3,9 +3,20 @@ import std._uint;
type pos = rec(uint line, uint col);
type span = rec(str filename, pos lo, pos hi);
-type ty_mach = tag( ty_i8(), ty_i16(), ty_i32(), ty_i64(),
- ty_u8(), ty_u16(), ty_u32(), ty_u64(),
- ty_f32(), ty_f64() );
+tag ty_mach {
+ ty_i8();
+ ty_i16();
+ ty_i32();
+ ty_i64();
+
+ ty_u8();
+ ty_u16();
+ ty_u32();
+ ty_u64();
+
+ ty_f32();
+ ty_f64();
+}
fn ty_mach_to_str(ty_mach tm) -> str {
alt (tm) {