diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-09 09:14:23 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-08-09 09:14:23 +0400 |
commit | a2752828083a77421efdcd59938eeb21657c39a3 (patch) | |
tree | 13a3ddaf12f8794882d552d0f15aa3011a96ef58 /src/termhooks.h | |
parent | e0cc4efac7f170e81c9b95f1a616c1595442936e (diff) |
Use TSET for write access to Lisp_Object slots of struct terminal.
* termhooks.h (TSET): New macro.
* coding.c, terminal.c, xselect.c: Adjust users.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r-- | src/termhooks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 4cad4825cd..78d8532e03 100644 --- a/src/termhooks.h +++ b/src/termhooks.h @@ -321,6 +321,10 @@ struct ns_display_info; struct x_display_info; struct w32_display_info; +/* Most code should use this macro to set Lisp field in struct terminal. */ + +#define TSET(f, field, value) ((f)->field = (value)) + /* Terminal-local parameters. */ struct terminal { |