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/pretty | |
| 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/pretty')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 6f5ea096..7863f3e7 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -163,8 +163,12 @@ impure fn print_item(ps s, @ast.item item) { wrd1(s, "type"); wrd(s, id); } - case (ast.native_item_fn(?id,?decl,?typarams,_,_)) { + case (ast.native_item_fn(?id,?lname,?decl,?typarams,_,_)) { print_fn(s, decl, id, typarams); + alt (lname) { + case (option.none[str]) {} + case (option.some[str](?ss)) {print_string(s,ss);} + } } } wrd(s, ";"); |