diff src/macros.c @ 173:8eaf7971accc r20-3b13

Import from CVS: tag r20-3b13
author cvs
date Mon, 13 Aug 2007 09:49:09 +0200
parents 859a2309aef8
children c5d627a313b1
line wrap: on
line diff
--- a/src/macros.c	Mon Aug 13 09:47:55 2007 +0200
+++ b/src/macros.c	Mon Aug 13 09:49:09 2007 +0200
@@ -118,8 +118,8 @@
       int size = con->kbd_macro_end;
       con->last_kbd_macro = make_vector (size, Qnil);
       for (i = 0; i < con->kbd_macro_end; i++)
-	vector_data (XVECTOR (con->last_kbd_macro)) [i] =
-	  vector_data (XVECTOR (con->kbd_macro_builder)) [i];
+	XVECTOR_DATA (con->last_kbd_macro) [i] =
+	  XVECTOR_DATA (con->kbd_macro_builder) [i];
       con->defining_kbd_macro = Qnil;
       MARK_MODELINE_CHANGED;
       message ("Keyboard macro defined");
@@ -144,18 +144,17 @@
 {
   struct console *con = event_console_or_selected (event);
 
-  if (con->kbd_macro_ptr == XVECTOR (con->kbd_macro_builder)->size)
+  if (con->kbd_macro_ptr == XVECTOR_LENGTH (con->kbd_macro_builder))
     {
       int i;
-      int old_size = XVECTOR (con->kbd_macro_builder)->size;
+      int old_size = XVECTOR_LENGTH (con->kbd_macro_builder);
       int new_size = old_size * 2;
       Lisp_Object new = make_vector (new_size, Qnil);
       for (i = 0; i < old_size; i++)
-	vector_data (XVECTOR (new)) [i] =
-	  vector_data (XVECTOR (con->kbd_macro_builder)) [i];
+	XVECTOR_DATA (new) [i] = XVECTOR_DATA (con->kbd_macro_builder) [i];
       con->kbd_macro_builder = new;
     }
-  vector_data (XVECTOR (con->kbd_macro_builder)) [con->kbd_macro_ptr++] =
+  XVECTOR_DATA (con->kbd_macro_builder) [con->kbd_macro_ptr++] =
     Fcopy_event (event, Qnil);
 }