aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-02-25 15:58:08 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-02-25 15:58:08 -0500
commit081c3aa76dd0805767e0233c0cc6ccf313cf44ba (patch)
tree59b76080da8a103b3a8dd7306ffbf2e4d4ed86f2 /src/comp/front/parser.rs
parentThere are no native iterators (or at least they are not going to be supported (diff)
downloadrust-081c3aa76dd0805767e0233c0cc6ccf313cf44ba.tar.xz
rust-081c3aa76dd0805767e0233c0cc6ccf313cf44ba.zip
Pass the abi of native functions all the way to codegen.
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 7bd34fdf..32bcf6ef 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1818,8 +1818,8 @@ impure fn parse_item_native_mod(parser p) -> @ast.item {
auto abi = ast.native_abi_cdecl;
if (p.peek() != token.MOD) {
auto t = parse_str_lit(p);
- if (t == "cdecl") {
- } else if (t == "rust") {
+ if (_str.eq(t, "cdecl")) {
+ } else if (_str.eq(t, "rust")) {
abi = ast.native_abi_rust;
} else {
p.err("unsupported abi: " + t);