2002-08-27 11:41:30 -04:00
$OpenBSD: patch-doc_gc_man,v 1.1 2002/08/27 15:41:30 todd Exp $
--- doc/gc.man.orig Wed Sep 22 01:55:00 1999
+++ doc/gc.man Sat Jul 27 01:04:55 2002
@@ -68,6 +68,48 @@ This may temporarily write protect pages
1999-04-19 17:34:05 -04:00
.LP
Other facilities not discussed here include limited facilities to support incremental collection on machines without appropriate VM support, provisions for providing more explicit object layout information to the garbage collector, more direct support for ``weak'' pointers, support for ``abortable'' garbage collections during idle time, etc.
2002-08-27 11:41:30 -04:00
.LP
1999-04-19 17:34:05 -04:00
+.SH "PORT INFORMATION"
+.LP
+In this (OpenBSD package) installation,
+.I gc.h
+and
+.I gc_cpp.h
+will probably be found in
2002-08-27 11:41:30 -04:00
+.I /usr/local/include,
1999-04-19 17:34:05 -04:00
+and the libraries in
2002-08-27 11:41:30 -04:00
+.I /usr/local/lib.
1999-04-19 17:34:05 -04:00
+.LP
+These libraries have been compiled as drop-in replacements
+for malloc and free (which is to say, all malloc
+calls will allocate garbage-collectable data).
+There is no need to include "gc.h" in your C files unless you want
+access to the debugging (and other) functions defined there,
+or unless you want to explicitly use
+.I GC_malloc_uncollectable
+for some allocations.
+Just link against them whenever you want either garbage
+collection or leak detection.
+.LP
+The C++ header file, "gc_cpp.h",
+.I is
+necessary for C++ programs, to obtain the appropriate
+definitions of the
+.I new
+and
+.I delete
+operators.
+The comments in both of these header files presently
+provide far better documentation
+for the package than this man page;
+look there for more information.
+.LP
+Both libraries are compiled without (explicit) support
+for the experimental
+.I gc
+extension of
+.I g++.
+This may or may not make a difference.
2002-08-27 11:41:30 -04:00
+.LP
1999-04-19 17:34:05 -04:00
.SH "SEE ALSO"
The README and gc.h files in the distribution. More detailed definitions of the functions exported by the collector are given there. (The above list is not complete.)
2002-08-27 11:41:30 -04:00
.LP