diff src/undo.c @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children 11054d720c21
line wrap: on
line diff
--- a/src/undo.c	Mon Aug 13 11:19:22 2007 +0200
+++ b/src/undo.c	Mon Aug 13 11:20:41 2007 +0200
@@ -46,7 +46,7 @@
    which will be added to the list at the end of the command.
    This ensures we can't run out of space while trying to make
    an undo-boundary.  */
-static Lisp_Object pending_boundary;
+Lisp_Object pending_boundary;
 
 static void
 undo_boundary (struct buffer *b)
@@ -281,7 +281,7 @@
       && NILP (XCAR (next)))
     {
       /* Add in the space occupied by this element and its chain link.  */
-      size_so_far += sizeof (Lisp_Cons);
+      size_so_far += sizeof (struct Lisp_Cons);
 
       /* Advance to next element.  */
       prev = next;
@@ -294,12 +294,12 @@
       elt = XCAR (next);
 
       /* Add in the space occupied by this element and its chain link.  */
-      size_so_far += sizeof (Lisp_Cons);
+      size_so_far += sizeof (struct Lisp_Cons);
       if (CONSP (elt))
 	{
-	  size_so_far += sizeof (Lisp_Cons);
+	  size_so_far += sizeof (struct Lisp_Cons);
 	  if (STRINGP (XCAR (elt)))
-	    size_so_far += (sizeof (Lisp_String) - 1
+	    size_so_far += (sizeof (struct Lisp_String) - 1
 			    + XSTRING_LENGTH (XCAR (elt)));
 	}
 
@@ -329,12 +329,12 @@
 	}
 
       /* Add in the space occupied by this element and its chain link.  */
-      size_so_far += sizeof (Lisp_Cons);
+      size_so_far += sizeof (struct Lisp_Cons);
       if (CONSP (elt))
 	{
-	  size_so_far += sizeof (Lisp_Cons);
+	  size_so_far += sizeof (struct Lisp_Cons);
 	  if (STRINGP (XCAR (elt)))
-	    size_so_far += (sizeof (Lisp_String) - 1
+	    size_so_far += (sizeof (struct Lisp_String) - 1
                             + XSTRING_LENGTH (XCAR (elt)));
 	}
 
@@ -547,16 +547,9 @@
 }
 
 void
-reinit_vars_of_undo (void)
+vars_of_undo (void)
 {
   inside_undo = 0;
-}
-
-void
-vars_of_undo (void)
-{
-  reinit_vars_of_undo ();
-
   pending_boundary = Qnil;
   staticpro (&pending_boundary);
   last_undo_buffer = Qnil;