diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-01 11:57:09 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-01 11:57:09 +0400 |
commit | 8271d59040b3d83fb3fc8cb23723538183b12ad4 (patch) | |
tree | 909df79d98251334a8e2dc393d54ec47cc441756 /src/doc.c | |
parent | 0d26d7c4dc79554439ad96fb7d9f75aa2085e0ca (diff) | |
download | emacs-8271d59040b3d83fb3fc8cb23723538183b12ad4.tar.gz |
Use INTERNAL_FIELD for symbols.
* src/lisp.h (SVAR): New macro. Adjust users.
* src/alloc.c, src/bytecode.c, src/cmds.c, src/data.c, src/doc.c, src/eval.c:
* src/fns.c, src/keyboard.c, src/lread.c, src/xterm.c: Users changed.
* admin/coccinelle/symbol.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Symbol to SVAR.
Diffstat (limited to 'src/doc.c')
-rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc.c b/src/doc.c index 44363e30e82..e57b26525e1 100644 --- a/src/doc.c +++ b/src/doc.c @@ -508,7 +508,7 @@ store_function_docstring (Lisp_Object obj, ptrdiff_t offset) { /* Don't use indirect_function here, or defaliases will apply their docstrings to the base functions (Bug#2603). */ - Lisp_Object fun = SYMBOLP (obj) ? XSYMBOL (obj)->function : obj; + Lisp_Object fun = SYMBOLP (obj) ? SVAR (XSYMBOL (obj), function) : obj; /* The type determines where the docstring is stored. */ |