# HG changeset patch # User William Welliver # Date 1635387399 14400 # Wed Oct 27 22:16:39 2021 -0400 # Node ID 0c84b9e7e86a7cbaba474ac002dbd7e9dca6c02c # Parent a8615a35bb72d2cdfb3205dd2c04faea526d28c9 add missing function definitions diff --git a/util.h b/util.h --- a/util.h +++ b/util.h @@ -19,6 +19,7 @@ #include "backend.h" #import #import "OC_NSAutoreleasePoolCollector.h" +#include #if (PIKE_MAJOR_VERSION == 7 && PIKE_MINOR_VERSION == 1 && PIKE_BUILD_VERSION >= 12) || PIKE_MAJOR_VERSION > 7 || (PIKE_MAJOR_VERSION == 7 && PIKE_MINOR_VERSION > 1) # include "pike_error.h" @@ -62,3 +63,12 @@ void make_complex_object(void * result, int len, char * signature); void push_complex_result(void * result, int len, char * signature); void make_complex_object(void * result, int len, char * signature); +int push_objc_pointer_return_type(struct objc_method * method, void ** margs); +void * svalue_to_ptr(struct svalue * sval, char * type); +BOOL isNSNil(struct svalue * sv); +int push_objc_types(NSMethodSignature* sig, NSInvocation* invocation); +struct svalue * get_class_func_by_selector(struct program * prog, SEL aSelector); +BOOL has_objc_class_method(id obj, SEL aSelector); +char * get_signature_for_class_func(struct svalue * func, SEL selector, struct program * prog); +BOOL has_objc_method(id obj, SEL aSelector); +int push_objc_type(char * type, void * buf);