Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/Echo/Runtime/ImageInspection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let protocolLock = NSLock()
var _protocols = Set<UnsafeRawPointer>()

@_cdecl("registerProtocols")
func registerProtocols(section: UnsafeRawPointer, size: Int) {
public func registerProtocols(section: UnsafeRawPointer, size: Int) {
for i in 0 ..< size / 4 {
let start = section.offset(of: i, as: Int32.self)
let ptr = start.relativeDirectAddress(as: _ProtocolDescriptor.self)
Expand All @@ -75,7 +75,7 @@ let conformanceLock = NSLock()
var conformances = [UnsafeRawPointer: [ConformanceDescriptor]]()

@_cdecl("registerProtocolConformances")
func registerProtocolConformances(section: UnsafeRawPointer, size: Int) {
public func registerProtocolConformances(section: UnsafeRawPointer, size: Int) {
for i in 0 ..< size / 4 {
let start = section.offset(of: i, as: Int32.self)
let ptr = start.relativeDirectAddress(as: _ConformanceDescriptor.self)
Expand Down Expand Up @@ -137,7 +137,7 @@ let typeLock = NSLock()
var _types = Set<UnsafeRawPointer>()

@_cdecl("registerTypeMetadata")
func registerTypeMetadata(section: UnsafeRawPointer, size: Int) {
public func registerTypeMetadata(section: UnsafeRawPointer, size: Int) {
for i in 0 ..< size / 4 {
let start = section.offset(of: i, as: Int32.self)
let ptr = start.relativeDirectAddress(as: _ContextDescriptor.self)
Expand All @@ -161,7 +161,7 @@ typealias mach_header_platform = mach_header
#endif

@_cdecl("lookupSection")
func lookupSection(
public func lookupSection(
_ header: UnsafePointer<mach_header>?,
segment: UnsafePointer<CChar>?,
section: UnsafePointer<CChar>?,
Expand Down