diff src/alloca.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 3ecd8885ac67
children 3078fd1074e8
line wrap: on
line diff
--- a/src/alloca.c	Mon Aug 13 11:33:40 2007 +0200
+++ b/src/alloca.c	Mon Aug 13 11:35:02 2007 +0200
@@ -23,7 +23,7 @@
 
 /* Synched up with: FSF 19.30. */
 
-/* Authorsip:
+/* Authorship:
 
    FSF: A long time ago.
    Very few changes for XEmacs.
@@ -86,7 +86,7 @@
 # endif
 #endif
 
-#ifndef WINDOWSNT
+#ifndef NULL
 #define	NULL	0
 #endif
 
@@ -103,7 +103,7 @@
 #ifndef emacs
 #define malloc xmalloc
 #endif
-#ifndef WINDOWSNT
+#ifndef WIN32_NATIVE
 extern pointer malloc ();
 #else
 extern void *malloc();
@@ -193,7 +193,7 @@
      unsigned size;
 {
   auto char probe;		/* Probes stack depth: */
-  REGISTER char *depth = ADDRESS_FUNCTION (probe);
+  register char *depth = ADDRESS_FUNCTION (probe);
 
 #if STACK_DIRECTION == 0
   if (STACK_DIR == 0)		/* Unknown growth direction.  */
@@ -204,13 +204,13 @@
      was allocated from deeper in the stack than currently. */
 
   {
-    REGISTER header *hp;	/* Traverses linked list.  */
+    register header *hp;	/* Traverses linked list.  */
 
     for (hp = last_alloca_header; hp != NULL;)
       if ((STACK_DIR > 0 && hp->h.deep > depth)
 	  || (STACK_DIR < 0 && hp->h.deep < depth))
 	{
-	  REGISTER header *np = hp->h.next;
+	  register header *np = hp->h.next;
 
 	  free ((pointer) hp);	/* Collect garbage.  */
 
@@ -228,7 +228,7 @@
   /* Allocate combined header + user data storage.  */
 
   {
-    REGISTER pointer new = malloc (sizeof (header) + size);
+    register pointer new = malloc (sizeof (header) + size);
     /* Address of header.  */
 
     ((header *) new)->h.next = last_alloca_header;