diff src/alloca.c @ 2965:0612d54a372a

[xemacs-hg @ 2005-09-30 02:15:06 by ben] fix --disable-debug error alloca.c: Don't declare a variable `register' when it can be passed to xfree(), which may take its address. new -> new_.
author ben
date Fri, 30 Sep 2005 02:15:08 +0000
parents 3d8143fc88e1
children 16112448d484
line wrap: on
line diff
--- a/src/alloca.c	Thu Sep 29 21:51:08 2005 +0000
+++ b/src/alloca.c	Fri Sep 30 02:15:08 2005 +0000
@@ -143,7 +143,7 @@
      was allocated from deeper in the stack than currently. */
 
   {
-    register header *hp;	/* Traverses linked list.  */
+    header *hp;	/* Traverses linked list.  */
 
     for (hp = last_alloca_header; hp != NULL;)
       if ((STACK_DIR > 0 && hp->h.deep > depth)
@@ -177,20 +177,20 @@
 
   {
 #ifdef emacs
-    register pointer new = xmalloc (sizeof (header) + size);
+    register pointer new_ = xmalloc (sizeof (header) + size);
 #else
-    register pointer new = malloc (sizeof (header) + size);
+    register pointer new_ = malloc (sizeof (header) + size);
 #endif
     /* Address of header.  */
 
-    ((header *) new)->h.next = last_alloca_header;
-    ((header *) new)->h.deep = depth;
+    ((header *) new_)->h.next = last_alloca_header;
+    ((header *) new_)->h.deep = depth;
 
-    last_alloca_header = (header *) new;
+    last_alloca_header = (header *) new_;
 
     /* User storage begins just after header.  */
 
-    return (pointer) ((char *) new + sizeof (header));
+    return (pointer) ((char *) new_ + sizeof (header));
   }
 }