- 30 Sep, 2016 1 commit
-
-
qinsoon authored
-
- 29 Sep, 2016 7 commits
-
-
qinsoon authored
-
Kunshan Wang authored
-
Kunshan Wang authored
Found a way to implement handle allocation and dealllocation, and a way to access MuVM from MuCtx using pointers.
-
qinsoon authored
-
Kunshan Wang authored
Re-wrote the muapi2rustapi.py script. Use *const for CStrings and CMuValue.
-
Kunshan Wang authored
Set linker flags properly according to the OS. Tested trap handler callback. It looks like it is easy enough for Rust to interact with C.
-
qinsoon authored
-
- 28 Sep, 2016 6 commits
-
-
Kunshan Wang authored
Added linker flags so it will work in Linux.
-
Kunshan Wang authored
Test whether the generated stubs are reasonable.
-
qinsoon authored
-
qinsoon authored
partially serialize compiled function into bootimage
-
Kunshan Wang authored
Added the "localtest" directory for testing the API without touching other modules. (TODO: It could be moved somewhere else, but should not use src as an extern crate, or it will depend on the entire crate.) Use CStr for incoming strings from C. CString is for C-style strings **owned by Rust**. Added comments at the beginning of api_c.rs and api_bridge.rs to indicate some parts of the files are generated.
-
qinsoon authored
-
- 27 Sep, 2016 1 commit
-
-
Kunshan Wang authored
Now the API stubs (__api_impl_stubs.rs) should be ready for use.
-
- 23 Sep, 2016 3 commits
-
-
Kunshan Wang authored
TODO: Convert retvals back to C.
-
Kunshan Wang authored
Inline the converter functions for minimum cost. Use debug_assert! Mark C-facing functions as extern. Added filler functions to fill-up the C-facing structs with methods.
-
Kunshan Wang authored
Now arrays, handles and primitive values can be converted to the appropriate Rust values. TODO: Need to forward each function to the concrete api_impl methods, and convert the return values back to C types. Stubs should be generated to ease the implementation of high-level methods.
-
- 22 Sep, 2016 7 commits
-
-
Kunshan Wang authored
api_bridge.rs will convert low-level C valus to high-level Rust value, such as CMuValue* -> [&APIMuValue].
-
Kunshan Wang authored
fn() is already function pointer type. No need for `*mut fn()`.
-
Kunshan Wang authored
-
qinsoon authored
-
qinsoon authored
going to implement exception
-
qinsoon authored
-
qinsoon authored
-
- 21 Sep, 2016 3 commits
- 20 Sep, 2016 1 commit
-
-
qinsoon authored
(for blocks created during instruction selection)
-
- 15 Sep, 2016 4 commits
- 13 Sep, 2016 3 commits
- 12 Sep, 2016 3 commits
- 09 Sep, 2016 1 commit
-
-
qinsoon authored
-