diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editors/awk.c b/editors/awk.c index 74f9d8e54..16c871f8c 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -463,7 +463,7 @@ static void syntax_error(const char * const message) | |||
463 | 463 | ||
464 | static unsigned int hashidx(const char *name) | 464 | static unsigned int hashidx(const char *name) |
465 | { | 465 | { |
466 | register unsigned int idx=0; | 466 | unsigned int idx=0; |
467 | 467 | ||
468 | while (*name) idx = *name++ + (idx << 6) - idx; | 468 | while (*name) idx = *name++ + (idx << 6) - idx; |
469 | return idx; | 469 | return idx; |
@@ -574,7 +574,7 @@ static void hash_remove(xhash *hash, const char *name) | |||
574 | 574 | ||
575 | static void skip_spaces(char **s) | 575 | static void skip_spaces(char **s) |
576 | { | 576 | { |
577 | register char *p = *s; | 577 | char *p = *s; |
578 | 578 | ||
579 | while(*p == ' ' || *p == '\t' || | 579 | while(*p == ' ' || *p == '\t' || |
580 | (*p == '\\' && *(p+1) == '\n' && (++p, ++t.lineno))) { | 580 | (*p == '\\' && *(p+1) == '\n' && (++p, ++t.lineno))) { |
@@ -585,7 +585,7 @@ static void skip_spaces(char **s) | |||
585 | 585 | ||
586 | static char *nextword(char **s) | 586 | static char *nextword(char **s) |
587 | { | 587 | { |
588 | register char *p = *s; | 588 | char *p = *s; |
589 | 589 | ||
590 | while (*(*s)++) ; | 590 | while (*(*s)++) ; |
591 | 591 | ||
@@ -594,7 +594,7 @@ static char *nextword(char **s) | |||
594 | 594 | ||
595 | static char nextchar(char **s) | 595 | static char nextchar(char **s) |
596 | { | 596 | { |
597 | register char c, *pps; | 597 | char c, *pps; |
598 | 598 | ||
599 | c = *((*s)++); | 599 | c = *((*s)++); |
600 | pps = *s; | 600 | pps = *s; |
@@ -686,7 +686,7 @@ static var *setvar_u(var *v, const char *value) | |||
686 | /* set array element to user string */ | 686 | /* set array element to user string */ |
687 | static void setari_u(var *a, int idx, const char *s) | 687 | static void setari_u(var *a, int idx, const char *s) |
688 | { | 688 | { |
689 | register var *v; | 689 | var *v; |
690 | static char sidx[12]; | 690 | static char sidx[12]; |
691 | 691 | ||
692 | sprintf(sidx, "%d", idx); | 692 | sprintf(sidx, "%d", idx); |
@@ -991,7 +991,7 @@ static void rollback_token(void) { t.rollback = TRUE; } | |||
991 | 991 | ||
992 | static node *new_node(uint32_t info) | 992 | static node *new_node(uint32_t info) |
993 | { | 993 | { |
994 | register node *n; | 994 | node *n; |
995 | 995 | ||
996 | n = (node *)xzalloc(sizeof(node)); | 996 | n = (node *)xzalloc(sizeof(node)); |
997 | n->info = info; | 997 | n->info = info; |
@@ -1136,7 +1136,7 @@ static node *parse_expr(uint32_t iexp) | |||
1136 | /* add node to chain. Return ptr to alloc'd node */ | 1136 | /* add node to chain. Return ptr to alloc'd node */ |
1137 | static node *chain_node(uint32_t info) | 1137 | static node *chain_node(uint32_t info) |
1138 | { | 1138 | { |
1139 | register node *n; | 1139 | node *n; |
1140 | 1140 | ||
1141 | if (! seq->first) | 1141 | if (! seq->first) |
1142 | seq->first = seq->last = new_node(0); | 1142 | seq->first = seq->last = new_node(0); |
@@ -1355,7 +1355,7 @@ static void parse_program(char *p) | |||
1355 | 1355 | ||
1356 | static node *mk_splitter(char *s, tsplitter *spl) | 1356 | static node *mk_splitter(char *s, tsplitter *spl) |
1357 | { | 1357 | { |
1358 | register regex_t *re, *ire; | 1358 | regex_t *re, *ire; |
1359 | node *n; | 1359 | node *n; |
1360 | 1360 | ||
1361 | re = &spl->re[0]; | 1361 | re = &spl->re[0]; |