]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation problem.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Sep 2001 00:21:14 +0000 (00:21 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:53 +0000 (16:35 +0200)
lib/ChangeLog
lib/alloca.c

index 2214c17f06acf68419b2a0e0f6d6ef35abf17f93..ccdc8711f902e41271cb9e0a5bc2c17b79050dfe 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-13  Bruno Haible  <haible@clisp.cons.org>
+
+       * alloca.c (alloca): Replace 'REGISTER' with 'register'.
+       Reported by Len Makin <len@hpc.csiro.au>.
+
 2001-07-24  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.39 released.
index d2f7f0c086d082acf8eddd8c1e84738692207481..11e4cc374af7298c33ca59adaa206d1c0991b4b1 100644 (file)
@@ -193,7 +193,7 @@ alloca (size)
      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 @@ alloca (size)
      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 @@ alloca (size)
   /* 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;