about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-02-25 15:58:08 -0500
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-02-25 15:58:08 -0500
commit081c3aa76dd0805767e0233c0cc6ccf313cf44ba (patch)
tree59b76080da8a103b3a8dd7306ffbf2e4d4ed86f2 /src/comp/front
parentf8f6f078c505dd0f20526e3ad86c360605fce109 (diff)
downloadrust-081c3aa76dd0805767e0233c0cc6ccf313cf44ba.tar.gz
rust-081c3aa76dd0805767e0233c0cc6ccf313cf44ba.zip
Pass the abi of native functions all the way to codegen.
Diffstat (limited to 'src/comp/front')
-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 7bd34fdf38e..32bcf6efe76 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);