boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / include / javaxfc.h
index 23e01005afed3f7303029b42aa4d5ca200393652..43f3bac6c8b4150d4577089318863787f6e7a687 100644 (file)
@@ -1,13 +1,18 @@
-# ifndef GC_H
+# ifndef _GC_H
 #   include "gc.h"
 # endif
 
+# ifdef __cplusplus
+    extern "C" {
+# endif
+
 /*
- * Invoke all remaining finalizers that haven't yet been run.
+ * Invoke all remaining finalizers that haven't yet been run, or
+ * repeatedly notify that there are finalizers to be run.
  * This is needed for strict compliance with the Java standard, 
  * which can make the runtime guarantee that all finalizers are run.
  * This is problematic for several reasons:
- * 1) It means that finalizers, and all methods calle by them,
+ * 1) It means that finalizers, and all methods called by them,
  *    must be prepared to deal with objects that have been finalized in
  *    spite of the fact that they are still referenced by statically
  *    allocated pointer variables.
@@ -16,6 +21,8 @@
  *    probably unlikely.
  * Thus this is not recommended for general use.
  */
-void GC_finalize_all();
-
+GC_API void GC_CALL GC_finalize_all(void);
 
+# ifdef __cplusplus
+    }  /* end of extern "C" */
+# endif