From b4c8dad4e3c7f7c08cea56d7589930be047ba786 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 11 Jan 2025 19:46:25 +0100 Subject: [PATCH] ; Fix typos --- README-IGC | 6 +++--- src/alloc.c | 6 +++--- src/igc.c | 14 +++++++------- src/pdumper.c | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README-IGC b/README-IGC index d9d6649d3f6..9558ffb9973 100644 --- a/README-IGC +++ b/README-IGC @@ -13,9 +13,9 @@ for more information. Building this branch ==================== -This branch can be built with and without the new GC (igc). If you want -to build with igc, you will need to install the MPS library -'libmps'. How to install the library differs from system to system, see +This branch can be built with and without the new GC (igc). If you want +to build with igc, you will need to install the MPS library 'libmps'. +How to install the library differs from system to system, see 'Installing libmps' below. How to build Emacs from a Git checkout is described in the file diff --git a/src/alloc.c b/src/alloc.c index 53f4429e71a..9437bedf650 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -2905,7 +2905,7 @@ DEFUN ("cons", Fcons, Scons, 2, 2, 0, cons_cells_consed++; return val; -#endif // !HAVE_MPS +#endif // not HAVE_MPS } /* Make a list of 1, 2, 3, 4 or 5 specified objects. */ @@ -3310,7 +3310,7 @@ allocate_vector_from_block (ptrdiff_t nbytes) ((char *) (vector) <= (block)->data \ + VECTOR_BLOCK_BYTES - VBLOCK_BYTES_MIN) -#endif // nto HAVE_MPS +#endif // not HAVE_MPS ptrdiff_t vectorlike_nbytes (const struct vectorlike_header *hdr) @@ -6425,7 +6425,7 @@ compact_font_cache_entry (Lisp_Object entry) static void compact_font_caches (void) { - // Cannot be done with MfS, which doesn't seem to be tragic + // Cannot be done with MPS, which doesn't seem to be tragic // because there is an option to turn it off. # ifndef HAVE_MPS diff --git a/src/igc.c b/src/igc.c index 29e5bbc358c..e5eb9e99505 100644 --- a/src/igc.c +++ b/src/igc.c @@ -225,12 +225,12 @@ along with GNU Emacs. If not, see . */ /* TODO: Check what is still missing here; font, and maybe others. */ #endif /* CHECK_STRUCTS */ -/* If igc can currently can be used. +/* If igc can currently be used. Initial state is IGC_STATE_INITIAL, until everything needed has been successfully initialized. - State does from IGC_STATE_INITIAL to IGC_STATE_USABLE_PARKED where + State goes from IGC_STATE_INITIAL to IGC_STATE_USABLE_PARKED where everything is usable, but GC is not done. State then goes from there to IGC_STATE_USABLE when everything is @@ -291,7 +291,7 @@ igc_assert_fail (const char *file, unsigned line, const char *msg) #define IGC_NOT_IMPLEMENTED() \ igc_assert_fail (__FILE__, __LINE__, "not implemented") -/* An enum for telemetry event categories seems to be missing from MOS. +/* An enum for telemetry event categories seems to be missing from MPS. The docs only mention the bare numbers. */ enum igc_event_category @@ -554,8 +554,8 @@ enum igc_tag #ifdef IN_MY_FORK /* After Pip Cet's header changes, Lisp objects include a gc_header - union, which has an uint64_t member 'v'. struct igc_header then - contained the same 'v', and not bitfields anymore. This makes things + union, which has an uint64_t member 'v'. struct igc_header then + contained the same 'v', and not bitfields anymore. This makes things inconvenient in LLDB. */ struct igc_header @@ -1524,7 +1524,7 @@ scan_specpdl (mps_ss_t ss, void *start, void *end, void *closure) // If I am not mistaken, the emacs_env in this binding // actually lives on the stack (see module-load e.g.). - // So, we don't have to do something here for the Lisp + // So, we don't have to do anything here for the Lisp // objects in emacs_env. case SPECPDL_MODULE_ENVIRONMENT: break; @@ -4080,7 +4080,7 @@ igc_replace_char (Lisp_Object string, ptrdiff_t at_byte_pos, { struct Lisp_String *s = XSTRING (string); - // Replacing caaracters of the same length. + // Replacing characters of the same length. if (old_char_len == new_char_len) return s->u.s.data + at_byte_pos; diff --git a/src/pdumper.c b/src/pdumper.c index ca4d6212187..c24874eeafa 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -918,8 +918,8 @@ dump_igc_start_obj (struct dump_context *ctx, enum igc_obj_type type, type == IGC_OBJ_DUMPED_CODE_SPACE_MASKS || type == IGC_OBJ_DUMPED_BIGNUM_DATA)) { - /* This saving of obj_offset is Because of an assertion in - dump_write. */ + /* This saving of obj_offset is because of an assertion in + dump_write. */ dump_off obj_offset = ctx->obj_offset; ctx->obj_offset = 0; dump_write_zero (ctx, igc_header_size ());