diff options
| author | Pip Cet | 2024-08-20 18:52:35 +0000 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-12 22:48:11 +0100 |
| commit | f84ccff5a6275782a37534ed55b706db35f228ac (patch) | |
| tree | db1373a72944979b562ae8a8c750543f15396daf /src/data.c | |
| parent | d359858b5d02e60c1d46c26750e5510c2606916a (diff) | |
| download | emacs-f84ccff5a6275782a37534ed55b706db35f228ac.tar.gz emacs-f84ccff5a6275782a37534ed55b706db35f228ac.zip | |
Pure storage removal: Main part
* src/alloc.c (pure, PUREBEG, purebeg, pure_size)
(pure_bytes_used_before_overflow, pure_bytes_used_lisp)
(pure_bytes_used_non_lisp): Remove definitions.
(init_strings): Make empty strings impure.
(cons_listn): Drop 'cons' argument.
(pure_listn): Remove function.
(init_vectors): Allocate zero vector manually to avoid freelist issues.
(pure_alloc, check_pure_size, find_string_data_in_pure)
(make_pure_string, make_pure_c_string, pure_cons, make_pure_float)
(make_pure_bignum, make_pure_vector, purecopy_hash_table): Remove
functions.
(purecopy): Reduce to hash consing our argument.
(init_alloc_once_for_pdumper): Adjust to lack of pure space.
(pure-bytes-used): Adjust docstring to mark as obsolete.
(purify-flag): Keep for hash consing, but adjust docstring.
* src/bytecode.c:
* src/comp.c: Don't include "puresize.h".
* src/conf_post.h (SYSTEM_PURESIZE_EXTRA): Remove definition.
* src/data.c (pure_write_error): Remove function.
* src/deps.mk: Remove puresize.h dependency throughout.
* src/emacs.c:
* src/fns.c:
* src/intervals.c:
* src/keymap.c: Don't include "puresize.h".
* src/lisp.h (struct Lisp_Hash_Table): Adjust comment.
(pure_listn, pure_list, build_pure_c_string): Remove.
* src/w32heap.c (FREEABLE_P): Don't do use 'dumped_data'.
(malloc_before_dump, realloc_before_dump, free_before_dump): Remove
functions.
* src/w32heap.h: Adjust prototype.
* lisp/loadup.el:
* lisp/startup.el: Remove purespace code.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/data.c b/src/data.c index 66cf34c1e60..95c1d857964 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -27,7 +27,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 27 | 27 | ||
| 28 | #include "lisp.h" | 28 | #include "lisp.h" |
| 29 | #include "bignum.h" | 29 | #include "bignum.h" |
| 30 | #include "puresize.h" | ||
| 31 | #include "character.h" | 30 | #include "character.h" |
| 32 | #include "buffer.h" | 31 | #include "buffer.h" |
| 33 | #include "keyboard.h" | 32 | #include "keyboard.h" |
| @@ -136,12 +135,6 @@ wrong_type_argument (Lisp_Object predicate, Lisp_Object value) | |||
| 136 | } | 135 | } |
| 137 | 136 | ||
| 138 | void | 137 | void |
| 139 | pure_write_error (Lisp_Object obj) | ||
| 140 | { | ||
| 141 | xsignal2 (Qerror, build_string ("Attempt to modify read-only object"), obj); | ||
| 142 | } | ||
| 143 | |||
| 144 | void | ||
| 145 | args_out_of_range (Lisp_Object a1, Lisp_Object a2) | 138 | args_out_of_range (Lisp_Object a1, Lisp_Object a2) |
| 146 | { | 139 | { |
| 147 | xsignal2 (Qargs_out_of_range, a1, a2); | 140 | xsignal2 (Qargs_out_of_range, a1, a2); |