Fixed the memory functions required for LLVM to properly work.

This required the fixing of the features section to properly handle
passing on the use_std feature. It also required that the memory functions
were moved to the main library module instead of within the rust module
as was previously desired. The C module then correctly skips defining the
external C library functions.

Basic time functionality was also added.
This commit is contained in:
2017-03-01 19:05:36 -05:00
parent 102713417d
commit 89e37b017b
8 changed files with 371 additions and 6 deletions

12
src/c/mod.rs Normal file
View File

@ -0,0 +1,12 @@
//! Handle defining the external functions from what ever C library is
//! being linked against. These will use the C99 definitions so that
//! this library is as up-to-date as it can be.
mod string;
mod time;
pub use self::string::*;
pub use self::time::*;