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:
Richard Frith-MacDonald 2009-03-24 10:53:38 +00:00
parent 346052f64d
commit 057818ab06
4 changed files with 15 additions and 3 deletions

View file

@ -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