mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
use weak pointers for siblings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
819a5470a5
commit
4e2efb55dc
4 changed files with 15 additions and 3 deletions
|
@ -812,14 +812,16 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
#if GS_WITH_GC
|
||||
/* Function to turn Boehm GC warnings into NSLog warnings.
|
||||
/* Function to log Boehm GC warnings
|
||||
* NB. This must not allocate any collectable memory as it may result
|
||||
* in a deadlock in the garbage collecting library.
|
||||
*/
|
||||
static void
|
||||
warn_proc(char *msg, GC_word arg)
|
||||
{
|
||||
char buf[strlen(msg)+1024];
|
||||
sprintf(buf, msg, (unsigned long)arg);
|
||||
NSLog(@"Garbage collector: %s", buf);
|
||||
fprintf(stderr, "Garbage collector: %s", buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue