Revert change to function

This commit is contained in:
Joe Hoyle 2023-07-19 11:02:56 +02:00
parent 1c550852ab
commit cb89c7b4d8

View File

@ -2,7 +2,7 @@
use std::{fmt::Debug, os::raw::c_char, ptr}; use std::{fmt::Debug, os::raw::c_char, ptr};
use crate::{ffi::{zend_function_entry, zend_function}, flags::FunctionType}; use crate::ffi::zend_function_entry;
/// A Zend function entry. /// A Zend function entry.
pub type FunctionEntry = zend_function_entry; pub type FunctionEntry = zend_function_entry;
@ -36,11 +36,3 @@ impl FunctionEntry {
Box::into_raw(Box::new(self)) Box::into_raw(Box::new(self))
} }
} }
pub type Function = zend_function;
impl Function {
pub fn type_(&self) -> FunctionType {
FunctionType::from(unsafe { self.type_ })
}
}