changeset 8746:f7599d76594f

Include puresize.h. (menu_item_equiv_key): Use CHECK_IMPURE.
author Richard M. Stallman <rms@gnu.org>
date Wed, 14 Sep 1994 23:24:45 +0000
parents ebbea7d79174
children d7115dce85f9
files src/xmenu.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Wed Sep 14 20:24:21 1994 +0000
+++ b/src/xmenu.c	Wed Sep 14 23:24:45 1994 +0000
@@ -40,6 +40,7 @@
 #include "window.h"
 #include "keyboard.h"
 #include "blockinput.h"
+#include "puresize.h"
 
 /* This may include sys/types.h, and that somehow loses
    if this is not done before the other system files.  */
@@ -360,7 +361,10 @@
 
   /* Cache the data we just got in a sublist of the menu binding.  */
   if (NILP (cachelist))
-    XCONS (item1)->cdr = Fcons (Fcons (savedkey, descrip), def);
+    {
+      CHECK_IMPURE (item1);
+      XCONS (item1)->cdr = Fcons (Fcons (savedkey, descrip), def);
+    }
   else if (changed)
     {
       XCONS (cachelist)->car = savedkey;