diff options
| author | Dmitry Antipov | 2012-08-01 12:49:28 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-01 12:49:28 +0400 |
| commit | d8a05828fd9f78c6cadddd8b47b53d83833c3917 (patch) | |
| tree | e79a8e7e0a0abc277d5f928835abb0b64d7dcae7 /admin | |
| parent | 015a2738eb575f9dc07ea5e589eb88c8e071930a (diff) | |
| download | emacs-d8a05828fd9f78c6cadddd8b47b53d83833c3917.tar.gz emacs-d8a05828fd9f78c6cadddd8b47b53d83833c3917.zip | |
Use INTERNAL_FIELD for conses and overlays.
* src/lisp.h (struct Lisp_Cons): Use INTERNAL_FIELD.
Remove obsolete comment.
(MVAR): New macro.
(struct Lisp_Overlay): Use INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/buffer.h, src/fns.c: Adjust users.
* admin/coccinelle/overlay.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Overlay to MVAR.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/coccinelle/overlay.cocci | 28 |
2 files changed, 33 insertions, 0 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 8ca17e58b30..54ac7b4edd7 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * coccinelle/overlay.cocci: Semantic patch to replace direct | ||
| 4 | access to Lisp_Object members of struct Lisp_Overlay to MVAR. | ||
| 5 | |||
| 6 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7 | |||
| 3 | * coccinelle/symbol.cocci: Semantic patch to replace direct | 8 | * coccinelle/symbol.cocci: Semantic patch to replace direct |
| 4 | access to Lisp_Object members of struct Lisp_Symbol to SVAR. | 9 | access to Lisp_Object members of struct Lisp_Symbol to SVAR. |
| 5 | 10 | ||
diff --git a/admin/coccinelle/overlay.cocci b/admin/coccinelle/overlay.cocci new file mode 100644 index 00000000000..2be141e8332 --- /dev/null +++ b/admin/coccinelle/overlay.cocci | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Change direct access to Lisp_Object fields of struct | ||
| 2 | // Lisp_Overlay to MVAR. Beginning M denotes "misc", and | ||
| 3 | // MVAR is likely to be used for other second-class objects. | ||
| 4 | @@ | ||
| 5 | struct Lisp_Overlay *V; | ||
| 6 | Lisp_Object O; | ||
| 7 | @@ | ||
| 8 | ( | ||
| 9 | - V->start | ||
| 10 | + MVAR (V, start) | ||
| 11 | | | ||
| 12 | - V->end | ||
| 13 | + MVAR (V, end) | ||
| 14 | | | ||
| 15 | - V->plist | ||
| 16 | + MVAR (V, plist) | ||
| 17 | |||
| 18 | | | ||
| 19 | |||
| 20 | - XOVERLAY (O)->start | ||
| 21 | + MVAR (XOVERLAY (O), start) | ||
| 22 | | | ||
| 23 | - XOVERLAY (O)->end | ||
| 24 | + MVAR (XOVERLAY (O), end) | ||
| 25 | | | ||
| 26 | - XOVERLAY (O)->plist | ||
| 27 | + MVAR (XOVERLAY (O), plist) | ||
| 28 | ) | ||