From 3d097c8c928cc102456096fc1d0948702bb90844 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 12 Nov 2012 22:01:26 +0400 Subject: [PATCH] Better document GC_warn_proc in gc.h * include/gc.h (GC_warn_proc): Refine comment (add information about the arguments). --- include/gc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/gc.h b/include/gc.h index bd35c0c..4f32b48 100644 --- a/include/gc.h +++ b/include/gc.h @@ -1104,8 +1104,9 @@ GC_API int GC_CALL GC_invoke_finalizers(void); #endif /* GC_set_warn_proc can be used to redirect or filter warning messages. */ -/* p may not be a NULL pointer. Both the setter and the getter acquire */ -/* the GC lock (to avoid data races). */ +/* p may not be a NULL pointer. msg is printf format string (arg must */ +/* match the format). Both the setter and the getter acquire the GC */ +/* lock (to avoid data races). */ typedef void (GC_CALLBACK * GC_warn_proc)(char * /* msg */, GC_word /* arg */); GC_API void GC_CALL GC_set_warn_proc(GC_warn_proc /* p */) GC_ATTR_NONNULL(1); -- 2.7.4