From e5ce2be26ca966e48e0884acd6c6e2df657a9844 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 30 Dec 2015 08:44:18 +0300 Subject: [PATCH] Fix typos in gc_priv.h * include/private/gc_priv.h (CPP_MAXOBJBYTES): Add missing ')' in comment. * include/private/gc_priv.h (obj_kind.ok_freelist): Fix typo in comment ("list headers"). * include/private/gc_priv.h (obj_kind.ok_freelist, obj_kind.ok_reclaim_list): Reformat comment. --- include/private/gc_priv.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 25e3d264..9efbe688 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -758,10 +758,9 @@ GC_EXTERN GC_warn_proc GC_current_warn_proc; # define HBLKSIZE ((size_t)CPP_HBLKSIZE) -/* max size objects supported by freelist (larger objects are */ +/* Max size objects supported by freelist (larger objects are */ /* allocated directly with allchblk(), by rounding to the next */ -/* multiple of HBLKSIZE. */ - +/* multiple of HBLKSIZE). */ #define CPP_MAXOBJBYTES (CPP_HBLKSIZE/2) #define MAXOBJBYTES ((size_t)CPP_MAXOBJBYTES) #define CPP_MAXOBJWORDS BYTES_TO_WORDS(CPP_MAXOBJBYTES) @@ -1347,13 +1346,13 @@ GC_API_PRIV GC_FAR struct _GC_arrays GC_arrays; #define MAXOBJKINDS 16 GC_EXTERN struct obj_kind { - void **ok_freelist; /* Array of free listheaders for this kind of object */ - /* Point either to GC_arrays or to storage allocated */ - /* with GC_scratch_alloc. */ + void **ok_freelist; /* Array of free list headers for this kind of */ + /* object. Point either to GC_arrays or to */ + /* storage allocated with GC_scratch_alloc. */ struct hblk **ok_reclaim_list; - /* List headers for lists of blocks waiting to be */ - /* swept. */ - /* Indexed by object size in granules. */ + /* List headers for lists of blocks waiting to */ + /* be swept. Indexed by object size in */ + /* granules. */ word ok_descriptor; /* Descriptor template for objects in this */ /* block. */ GC_bool ok_relocate_descr; -- 2.40.0