From 70f9e78d289a4a757093dc48ca6d08ca1b174f81 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 23 Feb 2022 17:43:57 +0300 Subject: Fix comments to disambiguate plural nouns followed by 'is' * alloc.c (GC_add_to_heap): Change "bytes is" to "bytes argument is" in comment. * alloc.c (GC_expand_hp): Fix typo ("argument is") in comment. * include/gc/gc_inline.h (GC_FAST_MALLOC_GRANS): Change "granules is" to "granules argument is" in comment. * include/private/gcconfig.h [LINUX && REDIRECT_MALLOC]: Change "Linux threads is itself" to "Linux threads implementation itself is". * malloc.c (GC_alloc_large): Change "Flags is" to "flags argument should be" in comment. * include/private/gc_priv.h (GC_alloc_large): Likewise. * malloc.c (GC_alloc_large): Change "EXTRA_BYTES were" to "EXTRA_BYTES value was" in comment. * obj_map.c [MARK_BIT_PER_GRANULE] (GC_add_map_entry): Change "0 granules is" to "0 is" in comment. --- alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alloc.c') diff --git a/alloc.c b/alloc.c index 54e6589a..f7285b95 100644 --- a/alloc.c +++ b/alloc.c @@ -1336,7 +1336,7 @@ GC_API void GC_CALL GC_gcollect_and_unmap(void) #endif /* Use the chunk of memory starting at p of size bytes as part of the heap. */ -/* Assumes p is HBLKSIZE aligned, and bytes is a multiple of HBLKSIZE. */ +/* Assumes p is HBLKSIZE aligned, bytes argument is a multiple of HBLKSIZE. */ STATIC void GC_add_to_heap(struct hblk *p, size_t bytes) { hdr * phdr; @@ -1598,7 +1598,7 @@ GC_INNER GC_bool GC_expand_hp_inner(word n) } /* Really returns a bool, but it's externally visible, so that's clumsy. */ -/* Arguments is in bytes. Includes GC_init() call. */ +/* The argument is in bytes. Includes GC_init() call. */ GC_API int GC_CALL GC_expand_hp(size_t bytes) { int result; -- cgit v1.2.1