diff options
| author | Paul Eggert | 2020-08-11 02:16:54 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-08-11 02:27:43 -0700 |
| commit | 5bd7b3c7f7af97f62bbc4f4ba9040e533e20e841 (patch) | |
| tree | 057907bd18b8e34ffe0a1ad0f84b05ff1fca2c4d /src | |
| parent | 23c1d5dff99f1c5d502096be4584c786c55e9262 (diff) | |
| download | emacs-5bd7b3c7f7af97f62bbc4f4ba9040e533e20e841.tar.gz emacs-5bd7b3c7f7af97f62bbc4f4ba9040e533e20e841.zip | |
* src/pdumper.c (pdumper_load): XSETVECTOR -> make_lisp_ptr.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pdumper.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index 10dfa8737f0..c38cb2d34f3 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -391,6 +391,7 @@ struct dump_header | |||
| 391 | boundary. */ | 391 | boundary. */ |
| 392 | dump_off cold_start; | 392 | dump_off cold_start; |
| 393 | 393 | ||
| 394 | /* Offset of a vector of the dumped hash tables. */ | ||
| 394 | dump_off hash_list; | 395 | dump_off hash_list; |
| 395 | }; | 396 | }; |
| 396 | 397 | ||
| @@ -549,6 +550,7 @@ struct dump_context | |||
| 549 | heap objects. */ | 550 | heap objects. */ |
| 550 | Lisp_Object bignum_data; | 551 | Lisp_Object bignum_data; |
| 551 | 552 | ||
| 553 | /* List of hash tables that have been dumped. */ | ||
| 552 | Lisp_Object hash_tables; | 554 | Lisp_Object hash_tables; |
| 553 | 555 | ||
| 554 | unsigned number_hot_relocations; | 556 | unsigned number_hot_relocations; |
| @@ -2610,7 +2612,7 @@ dump_vectorlike_generic (struct dump_context *ctx, | |||
| 2610 | } | 2612 | } |
| 2611 | 2613 | ||
| 2612 | /* Return a vector of KEY, VALUE pairs in the given hash table H. The | 2614 | /* Return a vector of KEY, VALUE pairs in the given hash table H. The |
| 2613 | first H->count pairs are valid, the rest is left as nil. */ | 2615 | first H->count pairs are valid, and the rest are unbound. */ |
| 2614 | static Lisp_Object | 2616 | static Lisp_Object |
| 2615 | hash_table_contents (struct Lisp_Hash_Table *h) | 2617 | hash_table_contents (struct Lisp_Hash_Table *h) |
| 2616 | { | 2618 | { |
| @@ -5405,8 +5407,8 @@ pdumper_load (const char *dump_filename) | |||
| 5405 | if (header->hash_list) | 5407 | if (header->hash_list) |
| 5406 | { | 5408 | { |
| 5407 | struct Lisp_Vector *hash_tables = | 5409 | struct Lisp_Vector *hash_tables = |
| 5408 | ((struct Lisp_Vector *)(dump_base + header->hash_list)); | 5410 | (struct Lisp_Vector *) (dump_base + header->hash_list); |
| 5409 | XSETVECTOR (hashes, hash_tables); | 5411 | hashes = make_lisp_ptr (hash_tables, Lisp_Vectorlike); |
| 5410 | } | 5412 | } |
| 5411 | 5413 | ||
| 5412 | pdumper_hashes = &hashes; | 5414 | pdumper_hashes = &hashes; |