diff options
| author | Eli Zaretskii | 2021-09-22 10:07:25 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-09-22 10:07:25 +0300 |
| commit | 7973227f67cd8ea4a1ed590ebc279b34ece86c12 (patch) | |
| tree | 53a0482ef7ef8fd33f34ae9a4cf3e62ddc28227b /src/eval.c | |
| parent | 3d575534d43802552f59eb1b990939cb3412d4e9 (diff) | |
| download | emacs-7973227f67cd8ea4a1ed590ebc279b34ece86c12.tar.gz emacs-7973227f67cd8ea4a1ed590ebc279b34ece86c12.zip | |
Update comments warning about GC-resistant C programming
* src/eval.c: Remove an outdated comment about protection from GC.
* src/buffer.h:
* src/lisp.h: Add warnings about using 'char *' pointers to text
of Lisp strings and buffer text in code that could GC. Reported by
Po Lu <luangruo@yahoo.com>
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 76fe671b6dd..2bb7cfe6002 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -364,9 +364,6 @@ do_debug_on_call (Lisp_Object code, ptrdiff_t count) | |||
| 364 | call_debugger (list1 (code)); | 364 | call_debugger (list1 (code)); |
| 365 | } | 365 | } |
| 366 | 366 | ||
| 367 | /* NOTE!!! Every function that can call EVAL must protect its args | ||
| 368 | and temporaries from garbage collection while it needs them. | ||
| 369 | The definition of `For' shows what you have to do. */ | ||
| 370 | 367 | ||
| 371 | DEFUN ("or", For, Sor, 0, UNEVALLED, 0, | 368 | DEFUN ("or", For, Sor, 0, UNEVALLED, 0, |
| 372 | doc: /* Eval args until one of them yields non-nil, then return that value. | 369 | doc: /* Eval args until one of them yields non-nil, then return that value. |