From: Ivan Maidanski Date: Tue, 15 May 2018 07:47:18 +0000 (+0300) Subject: Fix return type in GC_set_warn_proc API documentation X-Git-Tag: v8.0.0~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a63c89e709e9cd42b652a54062709029a8b653d6;p=gc Fix return type in GC_set_warn_proc API documentation (fix of commit 2dd4ee71d) * doc/gcinterface.md: Change GC_set_warn_proc return type from GC_warn_proc to void. --- diff --git a/doc/gcinterface.md b/doc/gcinterface.md index 43efec17..4e7d309b 100644 --- a/doc/gcinterface.md +++ b/doc/gcinterface.md @@ -94,8 +94,8 @@ either has suitable support in the garbage collector (Linux and most Unix versions, Win32 if the collector was suitably built). On many platforms this interacts poorly with system calls that write to the garbage collected heap. -**`GC_warn_proc GC_set_warn_proc(GC_warn_proc)`** - Replace the default -procedure used by the collector to print warnings. The collector may otherwise +**void `GC_set_warn_proc`(GC_warn_proc)** - Replace the default procedure +used by the collector to print warnings. The collector may otherwise write to `stderr`, most commonly because `GC_malloc` was used in a situation in which `GC_malloc_ignore_off_page` would have been more appropriate. See `gc.h` for details.