Update of /var/lib/cvs/src/d2c/runtime/c-code
In directory cantor:/tmp/cvs-serv30665
Modified Files:
main.c
Log Message:
Invoke the Boehm gc's GC_INIT() macro. Note that strictly speaking
this should be done from the statically-linked portion of the program
on some platforms.
Index: main.c
===================================================================
RCS file: /var/lib/cvs/src/d2c/runtime/c-code/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- main.c 2 Jul 2003 16:54:36 -0000 1.24
+++ main.c 17 Jul 2003 19:19:40 -0000 1.25
@@ -8,6 +8,12 @@
#include "config.h"
#include "runtime.h"
+#if defined(HAVE_GC_H)
+#include <gc.h>
+#elif defined(HAVE_GC_GC_H)
+#include <gc/gc.h>
+#endif
+
int application_argc;
char **application_argv;
@@ -23,7 +29,11 @@
*/
void real_main(int argc, char *argv[])
{
- descriptor_t *sp = allocate_stack();
+ descriptor_t *sp;
+
+ GC_INIT();
+
+ sp = allocate_stack();
/* Remember our arguments so we can support Harlequin-style
application-name and application-arguments functions. Once we
_______________________________________________
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
http://www.gwydiondylan.org/mailman/listinfo/gd-chatter
|
|