summaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-08-13 07:44:27 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-08-13 07:44:27 +0400
commit7864a3f729e9bd78f17deefec428a6db41742c82 (patch)
tree35be2792b8dc2716b43b096ff81d4f107427a158 /src/keyboard.h
parent4c31be6153255dfe29a0231253263ea0d9011ac3 (diff)
downloademacs-7864a3f729e9bd78f17deefec428a6db41742c82.tar.gz
emacs-7864a3f729e9bd78f17deefec428a6db41742c82.tar.bz2
emacs-7864a3f729e9bd78f17deefec428a6db41742c82.zip
Use KSET for write access to Lisp_Object members of struct kboard.
* keyboard.h (KSET): New macro. * callint.c, category.c, frame.c, keyboard.c, keyboard.h, macros.c: * msdos.c, nsfns.m, nsterm.m, term.c, w32fns.c, w32term.c, xfns.c: * xterm.c: Adjust users.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 4006c67d68e..f83643d6f6e 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Most code should use this macro to access Lisp fields in struct kboard. */
#define KVAR(kboard, field) ((kboard)->INTERNAL_FIELD (field))
+#define KSET(kboard, field, value) ((kboard)->INTERNAL_FIELD (field) = (value))
/* Each KBOARD represents one logical input stream from which Emacs
gets input. If we are using ordinary terminals, it has one KBOARD