From: Bruno Haible Date: Sat, 15 Sep 2001 00:21:14 +0000 (+0000) Subject: Fix compilation problem. X-Git-Tag: v0.10.40~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c41e60c452c069e6bd8edca4436627e609bad6d6;p=thirdparty%2Fgettext.git Fix compilation problem. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 2214c17f0..ccdc8711f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2001-09-13 Bruno Haible + + * alloca.c (alloca): Replace 'REGISTER' with 'register'. + Reported by Len Makin . + 2001-07-24 Bruno Haible * gettext-0.10.39 released. diff --git a/lib/alloca.c b/lib/alloca.c index d2f7f0c08..11e4cc374 100644 --- a/lib/alloca.c +++ b/lib/alloca.c @@ -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;