diff options
| author | Eli Zaretskii | 2024-01-27 22:21:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-01-27 22:21:11 +0200 |
| commit | aa386cd92f403b2441d09e06743c78d6f2c8a7f5 (patch) | |
| tree | 0e5a328ee2c98afb667301f9ff645b213fc529de | |
| parent | 54c6588952b469df8d7983b6735461f542cd806e (diff) | |
| download | emacs-aa386cd92f403b2441d09e06743c78d6f2c8a7f5.tar.gz emacs-aa386cd92f403b2441d09e06743c78d6f2c8a7f5.zip | |
; * src/pdumper.c: Fix comments.
| -rw-r--r-- | src/pdumper.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index e1c71ae56c0..ee554cda55a 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -1858,11 +1858,10 @@ dump_field_lv_or_rawptr (struct dump_context *ctx, | |||
| 1858 | 1858 | ||
| 1859 | /* Set a pointer field on an output object during dump. | 1859 | /* Set a pointer field on an output object during dump. |
| 1860 | 1860 | ||
| 1861 | CTX is the dump context. OFFSET is the offset at which the current | 1861 | CTX is the dump context. OUT is a pointer to the dump output |
| 1862 | object starts. OUT is a pointer to the dump output object. | 1862 | object. IN_START is the start of the current Emacs object. |
| 1863 | IN_START is the start of the current Emacs object. IN_FIELD is a | 1863 | IN_FIELD is a pointer to the field in that object. TYPE is the |
| 1864 | pointer to the field in that object. TYPE is the type of pointer | 1864 | type of pointer to which IN_FIELD points. |
| 1865 | to which IN_FIELD points. | ||
| 1866 | */ | 1865 | */ |
| 1867 | static void | 1866 | static void |
| 1868 | dump_field_lv_rawptr (struct dump_context *ctx, | 1867 | dump_field_lv_rawptr (struct dump_context *ctx, |
| @@ -1877,8 +1876,7 @@ dump_field_lv_rawptr (struct dump_context *ctx, | |||
| 1877 | 1876 | ||
| 1878 | /* Set a Lisp_Object field on an output object during dump. | 1877 | /* Set a Lisp_Object field on an output object during dump. |
| 1879 | 1878 | ||
| 1880 | CTX is a dump context. OFFSET is the offset at which the current | 1879 | CTX is a dump context. OUT is a pointer to the dump output object. |
| 1881 | object starts. OUT is a pointer to the dump output object. | ||
| 1882 | IN_START is the start of the current Emacs object. IN_FIELD is a | 1880 | IN_START is the start of the current Emacs object. IN_FIELD is a |
| 1883 | pointer to a Lisp_Object field in that object. | 1881 | pointer to a Lisp_Object field in that object. |
| 1884 | 1882 | ||
| @@ -3214,7 +3212,7 @@ dump_charset (struct dump_context *ctx, int cs_i) | |||
| 3214 | #if CHECK_STRUCTS && !defined (HASH_charset_E31F4B5D96) | 3212 | #if CHECK_STRUCTS && !defined (HASH_charset_E31F4B5D96) |
| 3215 | # error "charset changed. See CHECK_STRUCTS comment in config.h." | 3213 | # error "charset changed. See CHECK_STRUCTS comment in config.h." |
| 3216 | #endif | 3214 | #endif |
| 3217 | /* We can't change the alignment here, because `offset` is what | 3215 | /* We can't change the alignment here, because ctx->offset is what |
| 3218 | will be used for the whole array. */ | 3216 | will be used for the whole array. */ |
| 3219 | eassert (ctx->offset % alignof (struct charset) == 0); | 3217 | eassert (ctx->offset % alignof (struct charset) == 0); |
| 3220 | const struct charset *cs = charset_table + cs_i; | 3218 | const struct charset *cs = charset_table + cs_i; |
| @@ -4233,9 +4231,9 @@ types. */) | |||
| 4233 | ctx->header.hash_list = ctx->offset; | 4231 | ctx->header.hash_list = ctx->offset; |
| 4234 | dump_hash_table_list (ctx); | 4232 | dump_hash_table_list (ctx); |
| 4235 | 4233 | ||
| 4236 | /* `dump_hash_table_list` just adds a new vector to the dump but all its | 4234 | /* dump_hash_table_list just adds a new vector to the dump but all |
| 4237 | content should already have been in the dump, so it doesn't add anything | 4235 | its content should already have been in the dump, so it doesn't |
| 4238 | to any queue. */ | 4236 | add anything to any queue. */ |
| 4239 | eassert (dump_queue_empty_p (&ctx->dump_queue) | 4237 | eassert (dump_queue_empty_p (&ctx->dump_queue) |
| 4240 | && NILP (ctx->deferred_hash_tables) | 4238 | && NILP (ctx->deferred_hash_tables) |
| 4241 | && NILP (ctx->deferred_symbols)); | 4239 | && NILP (ctx->deferred_symbols)); |