mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
fixed c99ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5b1411d52a
commit
2c22400865
2 changed files with 10 additions and 6 deletions
|
@ -765,6 +765,7 @@ replacementForClass(Class c)
|
|||
context: (void*)aContext
|
||||
{
|
||||
NSMapTable *observers;
|
||||
NSMapTable *observer;
|
||||
|
||||
[iLock lock];
|
||||
observers = (NSMapTable*)NSMapGet(paths, (void*)aPath);
|
||||
|
@ -781,7 +782,7 @@ replacementForClass(Class c)
|
|||
* FIXME ... should store an object containing context and options.
|
||||
* For simplicity right now, just store context or a dummy value.
|
||||
*/
|
||||
NSMapTable * observer = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||
observer = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 3);
|
||||
NSMapInsert(observer, (void *)@"context", aContext);
|
||||
NSMapInsert(observer, (void *)@"options", (void *)options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue