diff options
| author | Stefan Monnier | 2024-03-24 18:32:25 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-28 11:58:05 -0400 |
| commit | 2fa839c1886acd4a7b6c25c50877534fe1d669bb (patch) | |
| tree | 9db25d761b2de896a902ccae32dc02c7a9dc56f4 /src/doc.c | |
| parent | 1e931f1c3db1588ba402d0eab60f03cc036f814a (diff) | |
| download | emacs-2fa839c1886acd4a7b6c25c50877534fe1d669bb.tar.gz emacs-2fa839c1886acd4a7b6c25c50877534fe1d669bb.zip | |
(COMPILED): Rename to CLOSURE
In preparation for the use of `PVEC_COMPILED` objects for
interpreted functions, rename them to use a more neutral name.
* src/lisp.h (enum pvec_type): Rename `PVEC_COMPILED` to `PVEC_CLOSURE`.
(enum Lisp_Compiled): Use `CLOSURE_` prefix i.s.o `COMPILED_`.
Also use `CODE` rather than `BYTECODE`.
(CLOSUREP): Rename from `COMPILEDP`.
(enum Lisp_Closure): Rename from `Lisp_Compiled`.
* src/alloc.c, src/bytecode.c, src/comp.c, src/data.c, src/eval.c,
* src/fns.c, src/lisp.h, src/lread.c, src/pdumper.c, src/print.c,
* src/profiler.c: Rename all uses accordingly.
* src/.gdbinit (xclosure): Rename from `xcompiled`.
(xcompiled): New obsolete alias.
(xpr): Adjust accordingly. Also adjust to new PVEC_CLOSURE tag name.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -519,15 +519,15 @@ store_function_docstring (Lisp_Object obj, EMACS_INT offset) | |||
| 519 | /* Lisp_Subrs have a slot for it. */ | 519 | /* Lisp_Subrs have a slot for it. */ |
| 520 | if (SUBRP (fun)) | 520 | if (SUBRP (fun)) |
| 521 | XSUBR (fun)->doc = offset; | 521 | XSUBR (fun)->doc = offset; |
| 522 | else if (COMPILEDP (fun)) | 522 | else if (CLOSUREP (fun)) |
| 523 | { | 523 | { |
| 524 | /* This bytecode object must have a slot for the docstring, since | 524 | /* This bytecode object must have a slot for the docstring, since |
| 525 | we've found a docstring for it. */ | 525 | we've found a docstring for it. */ |
| 526 | if (PVSIZE (fun) > COMPILED_DOC_STRING | 526 | if (PVSIZE (fun) > CLOSURE_DOC_STRING |
| 527 | /* Don't overwrite a non-docstring value placed there, such as | 527 | /* Don't overwrite a non-docstring value placed there, such as |
| 528 | the symbols used for Oclosures. */ | 528 | the symbols used for Oclosures. */ |
| 529 | && VALID_DOCSTRING_P (AREF (fun, COMPILED_DOC_STRING))) | 529 | && VALID_DOCSTRING_P (AREF (fun, CLOSURE_DOC_STRING))) |
| 530 | ASET (fun, COMPILED_DOC_STRING, make_fixnum (offset)); | 530 | ASET (fun, CLOSURE_DOC_STRING, make_fixnum (offset)); |
| 531 | else | 531 | else |
| 532 | { | 532 | { |
| 533 | AUTO_STRING (format, "No doc string slot for compiled: %S"); | 533 | AUTO_STRING (format, "No doc string slot for compiled: %S"); |