diff options
| author | Dmitry Antipov | 2012-08-01 11:57:09 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-01 11:57:09 +0400 |
| commit | 8271d59040b3d83fb3fc8cb23723538183b12ad4 (patch) | |
| tree | 909df79d98251334a8e2dc393d54ec47cc441756 /src/lread.c | |
| parent | 0d26d7c4dc79554439ad96fb7d9f75aa2085e0ca (diff) | |
| download | emacs-8271d59040b3d83fb3fc8cb23723538183b12ad4.tar.gz emacs-8271d59040b3d83fb3fc8cb23723538183b12ad4.zip | |
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/lread.c')
| -rw-r--r-- | src/lread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c index 0db37d7492f..8a9547ee579 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -3922,13 +3922,13 @@ init_obarray (void) | |||
| 3922 | /* Fmake_symbol inits fields of new symbols with Qunbound and Qnil, | 3922 | /* Fmake_symbol inits fields of new symbols with Qunbound and Qnil, |
| 3923 | so those two need to be fixed manually. */ | 3923 | so those two need to be fixed manually. */ |
| 3924 | SET_SYMBOL_VAL (XSYMBOL (Qunbound), Qunbound); | 3924 | SET_SYMBOL_VAL (XSYMBOL (Qunbound), Qunbound); |
| 3925 | XSYMBOL (Qunbound)->function = Qunbound; | 3925 | SVAR (XSYMBOL (Qunbound), function) = Qunbound; |
| 3926 | XSYMBOL (Qunbound)->plist = Qnil; | 3926 | SVAR (XSYMBOL (Qunbound), plist) = Qnil; |
| 3927 | /* XSYMBOL (Qnil)->function = Qunbound; */ | 3927 | /* XSYMBOL (Qnil)->function = Qunbound; */ |
| 3928 | SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil); | 3928 | SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil); |
| 3929 | XSYMBOL (Qnil)->constant = 1; | 3929 | XSYMBOL (Qnil)->constant = 1; |
| 3930 | XSYMBOL (Qnil)->declared_special = 1; | 3930 | XSYMBOL (Qnil)->declared_special = 1; |
| 3931 | XSYMBOL (Qnil)->plist = Qnil; | 3931 | SVAR (XSYMBOL (Qnil), plist) = Qnil; |
| 3932 | 3932 | ||
| 3933 | Qt = intern_c_string ("t"); | 3933 | Qt = intern_c_string ("t"); |
| 3934 | SET_SYMBOL_VAL (XSYMBOL (Qt), Qt); | 3934 | SET_SYMBOL_VAL (XSYMBOL (Qt), Qt); |
| @@ -3950,7 +3950,7 @@ defsubr (struct Lisp_Subr *sname) | |||
| 3950 | Lisp_Object sym; | 3950 | Lisp_Object sym; |
| 3951 | sym = intern_c_string (sname->symbol_name); | 3951 | sym = intern_c_string (sname->symbol_name); |
| 3952 | XSETTYPED_PVECTYPE (sname, size, PVEC_SUBR); | 3952 | XSETTYPED_PVECTYPE (sname, size, PVEC_SUBR); |
| 3953 | XSETSUBR (XSYMBOL (sym)->function, sname); | 3953 | XSETSUBR (SVAR (XSYMBOL (sym), function), sname); |
| 3954 | } | 3954 | } |
| 3955 | 3955 | ||
| 3956 | #ifdef NOTDEF /* Use fset in subr.el now! */ | 3956 | #ifdef NOTDEF /* Use fset in subr.el now! */ |