mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
Commit forgotten admin/coccinelle/symbol.cocci.
This commit is contained in:
parent
8271d59040
commit
015a2738eb
32
admin/coccinelle/symbol.cocci
Normal file
32
admin/coccinelle/symbol.cocci
Normal file
@ -0,0 +1,32 @@
|
||||
// Change direct access to Lisp_Object fields of struct Lisp_Symbol to SVAR.
|
||||
@@
|
||||
struct Lisp_Symbol *S;
|
||||
Lisp_Object O;
|
||||
@@
|
||||
(
|
||||
- S->xname
|
||||
+ SVAR (S, xname)
|
||||
|
|
||||
- S->val.value
|
||||
+ SVAR (S, val.value)
|
||||
|
|
||||
- S->function
|
||||
+ SVAR (S, function)
|
||||
|
|
||||
- S->plist
|
||||
+ SVAR (S, plist)
|
||||
|
||||
|
|
||||
|
||||
- XSYMBOL (O)->xname
|
||||
+ SVAR (XSYMBOL (O), xname)
|
||||
|
|
||||
- XSYMBOL (O)->val.value
|
||||
+ SVAR (XSYMBOL (O), val.value)
|
||||
|
|
||||
- XSYMBOL (O)->function
|
||||
+ SVAR (XSYMBOL (O), function)
|
||||
|
|
||||
- XSYMBOL (O)->plist
|
||||
+ SVAR (XSYMBOL (O), plist)
|
||||
)
|
Loading…
Reference in New Issue
Block a user