If I had my way

Michel Fortin michel.fortin at michelf.com
Tue Dec 13 08:57:26 PST 2011


On 2011-12-13 14:53:22 +0000, Jacob Carlborg <doob at me.com> said:

> In this callback I extract module infos, exception handling tables and 
> TLS data from the mach_header. This is now where the problem comes. I 
> need an associative array which maps mach_headers to a struct (or 
> similar) containing module infos, exception handling tables and TLS 
> data. But I don't have an associative array that works this earily in 
> the initialization phase of the runtime.

Given this code is going to be specific to OS X, maybe you could use a 
CFMutableDictionary instead of rewriting your own hash table.

<http://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFMutableDictionaryRef/Reference/reference.html>

-- 


Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list