diff options
| author | Graydon Hoare <[email protected]> | 2011-03-20 20:18:19 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-20 20:18:19 -0700 |
| commit | 4b946cea35888bc82c624e9d79fade3077b40c3c (patch) | |
| tree | f4a618c82541396930cd876ad938f81781f6422f /src/comp/middle/trans.rs | |
| parent | Switch win32 path_sep to '/', add comment explaining a bit. (diff) | |
| download | rust-4b946cea35888bc82c624e9d79fade3077b40c3c.tar.xz rust-4b946cea35888bc82c624e9d79fade3077b40c3c.zip | |
Modify native_item_fn to handle trailing linkage names that differ from the item name (used in win32 build of std.dll)
Diffstat (limited to 'src/comp/middle/trans.rs')
| -rw-r--r-- | src/comp/middle/trans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f8d2b9fd..16ee9ae3 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -5409,7 +5409,7 @@ fn native_fn_ty_param_count(@crate_ctxt cx, &ast.def_id id) -> uint { "actually a fn?!"); fail; } - case (ast.native_item_fn(_, _, ?tps, _, _)) { + case (ast.native_item_fn(_, _, _, ?tps, _, _)) { count = _vec.len[ast.ty_param](tps); } } @@ -5499,7 +5499,7 @@ fn decl_native_fn_and_pair(@crate_ctxt cx, fn collect_native_item(&@crate_ctxt cx, @ast.native_item i) -> @crate_ctxt { alt (i.node) { - case (ast.native_item_fn(?name, _, _, ?fid, ?ann)) { + case (ast.native_item_fn(?name, _, _, _, ?fid, ?ann)) { cx.native_items.insert(fid, i); if (! cx.obj_methods.contains_key(fid)) { decl_native_fn_and_pair(cx, name, ann, fid); |