| commit | a4641c738ac9201880a3fce3449b4f481c3d7d3e | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Sep 08 14:05:53 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Fri Oct 09 19:12:17 2020 -0700 |
| tree | 6e74c37d6372e6fdcc1ae97b44e2fe93f318121d | |
| parent | f3a9afae5015971cc8b3e857c6dadbb9142bd3f8 [diff] [blame] |
Store independent rust name and c++ name for extern functions
diff --git a/syntax/mod.rs b/syntax/mod.rs index 934f6c6..c8dea67 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -71,10 +71,15 @@ pub repr: Atom, } +pub struct Pair { + pub cxx: Ident, + pub rust: Ident, +} + pub struct ExternFn { pub lang: Lang, pub doc: Doc, - pub ident: Ident, + pub ident: Pair, pub sig: Signature, pub semi_token: Token![;], }