Revision: 14883
http://sourceforge.net/p/skim-app/code/14883
Author: hofman
Date: 2025-01-25 17:19:40 +0000 (Sat, 25 Jan 2025)
Log Message:
-----------
Don't publicly declare functions to replace method implementations
Modified Paths:
--------------
trunk/SKRuntime.h
trunk/SKRuntime.m
Modified: trunk/SKRuntime.h
===================================================================
--- trunk/SKRuntime.h 2025-01-25 17:13:00 UTC (rev 14882)
+++ trunk/SKRuntime.h 2025-01-25 17:19:40 UTC (rev 14883)
@@ -40,11 +40,6 @@
NS_ASSUME_NONNULL_BEGIN
-enum { SKAddOrReplace, SKReplaceOnly, SKAddOnly };
-
-extern IMP SKSetMethodImplementation(Class aClass, SEL aSelector, IMP anImp,
const char * _Nullable types, NSInteger options);
-extern IMP SKSetMethodImplementationFromSelector(Class aClass, SEL aSelector,
SEL impSelector, NSInteger options);
-
extern IMP SKReplaceInstanceMethodImplementation(Class aClass, SEL aSelector,
IMP anImp);
extern void SKAddInstanceMethodImplementation(Class aClass, SEL aSelector, IMP
anImp, const char *types);
Modified: trunk/SKRuntime.m
===================================================================
--- trunk/SKRuntime.m 2025-01-25 17:13:00 UTC (rev 14882)
+++ trunk/SKRuntime.m 2025-01-25 17:19:40 UTC (rev 14883)
@@ -39,6 +39,7 @@
#import "SKRuntime.h"
#import <objc/objc-runtime.h>
+enum { SKAddOrReplace, SKReplaceOnly, SKAddOnly };
// this is essentially class_replaceMethod, but returns any inherited
implementation, and can get the types from an inherited implementation
IMP SKSetMethodImplementation(Class aClass, SEL aSelector, IMP anImp, const
char *types, NSInteger options) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit