diff options
| author | Stefan Monnier | 2010-04-29 08:42:01 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-04-29 08:42:01 -0400 |
| commit | d6d2385247fd2a9cacd338ec5ff1b47787ef44fb (patch) | |
| tree | af10b7111b8b48b618493da655909cac599968f6 /src/lisp.h | |
| parent | a982c7ec499d6d1571b89978bfca38e2dc464e0d (diff) | |
| download | emacs-d6d2385247fd2a9cacd338ec5ff1b47787ef44fb.tar.gz emacs-d6d2385247fd2a9cacd338ec5ff1b47787ef44fb.zip | |
Fix wrong-docstring problem introduced with hash-consing.
* eval.c (Fautoload): Set doc to a unique number rather than to 0.
Remove unused var `args'.
* lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
(LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
* doc.c (store_function_docstring): Use XSETCAR.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lisp.h b/src/lisp.h index 84e2fad4483..16953e20a04 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -721,11 +721,6 @@ struct Lisp_Cons | |||
| 721 | #define XSETCAR(c,n) (XCAR_AS_LVALUE(c) = (n)) | 721 | #define XSETCAR(c,n) (XCAR_AS_LVALUE(c) = (n)) |
| 722 | #define XSETCDR(c,n) (XCDR_AS_LVALUE(c) = (n)) | 722 | #define XSETCDR(c,n) (XCDR_AS_LVALUE(c) = (n)) |
| 723 | 723 | ||
| 724 | /* For performance: Fast storage of positive integers into the | ||
| 725 | fields of a cons cell. See above caveats. */ | ||
| 726 | #define XSETCARFASTINT(c,n) XSETFASTINT(XCAR_AS_LVALUE(c),(n)) | ||
| 727 | #define XSETCDRFASTINT(c,n) XSETFASTINT(XCDR_AS_LVALUE(c),(n)) | ||
| 728 | |||
| 729 | /* Take the car or cdr of something whose type is not known. */ | 724 | /* Take the car or cdr of something whose type is not known. */ |
| 730 | #define CAR(c) \ | 725 | #define CAR(c) \ |
| 731 | (CONSP ((c)) ? XCAR ((c)) \ | 726 | (CONSP ((c)) ? XCAR ((c)) \ |
| @@ -2821,7 +2816,9 @@ extern Lisp_Object intern_c_string (const char *); | |||
| 2821 | extern Lisp_Object make_symbol P_ ((char *)); | 2816 | extern Lisp_Object make_symbol P_ ((char *)); |
| 2822 | extern Lisp_Object oblookup P_ ((Lisp_Object, const char *, int, int)); | 2817 | extern Lisp_Object oblookup P_ ((Lisp_Object, const char *, int, int)); |
| 2823 | #define LOADHIST_ATTACH(x) \ | 2818 | #define LOADHIST_ATTACH(x) \ |
| 2824 | if (initialized) Vcurrent_load_list = Fcons (x, Vcurrent_load_list) | 2819 | do { \ |
| 2820 | if (initialized) Vcurrent_load_list = Fcons (x, Vcurrent_load_list); \ | ||
| 2821 | } while (0) | ||
| 2825 | extern Lisp_Object Vcurrent_load_list; | 2822 | extern Lisp_Object Vcurrent_load_list; |
| 2826 | extern Lisp_Object Vload_history, Vload_suffixes, Vload_file_rep_suffixes; | 2823 | extern Lisp_Object Vload_history, Vload_suffixes, Vload_file_rep_suffixes; |
| 2827 | extern int openp P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | 2824 | extern int openp P_ ((Lisp_Object, Lisp_Object, Lisp_Object, |