mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
Added separated file to store macros
This commit is contained in:
parent
28ecf2d162
commit
872ca624fb
4 changed files with 10 additions and 11 deletions
|
|
@ -13,12 +13,6 @@ extern {
|
|||
|
||||
}
|
||||
|
||||
macro_rules! c_str {
|
||||
($s:expr) => { {
|
||||
concat!($s, "\0").as_ptr() as *const c_char
|
||||
} }
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern fn php_module_startup(type_: c_int, module_number: c_int) -> c_int {
|
||||
0
|
||||
|
|
|
|||
|
|
@ -5,5 +5,8 @@
|
|||
|
||||
extern crate libc;
|
||||
|
||||
#[macro_use]
|
||||
pub mod macros;
|
||||
|
||||
pub mod zend;
|
||||
pub mod info;
|
||||
|
|
|
|||
7
src/macros.rs
Normal file
7
src/macros.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! c_str {
|
||||
($s:expr) => { {
|
||||
concat!($s, "\0").as_ptr() as *const c_char
|
||||
} }
|
||||
}
|
||||
|
|
@ -10,11 +10,6 @@ type GlobalsDtorFunc = extern fn (global: *const c_void) -> c_void;
|
|||
type PostDeactivateFunc = extern fn () -> c_int;
|
||||
|
||||
|
||||
macro_rules! c_str {
|
||||
($s:expr) => { {
|
||||
concat!($s, "\0").as_ptr() as *const c_char
|
||||
} }
|
||||
}
|
||||
|
||||
pub struct ModuleDep {}
|
||||
pub struct Function {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue