Niko Matsakis efc7f82bc4 Revamp foreign code not to consider the Rust modes. This requires
adjusting a few foreign functions that were declared with by-ref
mode.  This also allows us to remove by-val mode in the near future.

With copy mode, though, we have to be careful because Rust will implicitly pass
somethings by pointer but this may not be the C ABI rules.  For example, rust
will pass a struct Foo as a Foo*.  So I added some code into the adapters to
fix this (though the C ABI rules may put the pointer back, oh well).

This patch also includes a lint mode for the use of by-ref mode
in foreign functions as the semantics of this have changed.
2013-03-13 16:59:37 -04:00
..
2013-03-11 23:19:42 -07:00
2013-03-11 23:19:42 -07:00
2013-03-08 09:56:52 -05:00
2013-03-07 21:11:09 -05:00
2013-03-11 23:19:42 -07:00
2013-03-11 23:19:42 -07:00
2013-03-07 22:37:58 -08:00
2013-03-11 23:19:42 -07:00
2013-03-11 23:19:42 -07:00
2013-03-07 22:37:58 -08:00
2013-03-11 23:19:42 -07:00
2013-03-11 23:19:42 -07:00
2013-03-11 23:19:42 -07:00