remove register

There are no measurable performance differences if registers are used or not.
This commit is contained in:
Wolfram Schneider 2022-01-31 10:59:07 +00:00
parent 1a6d987b7f
commit 69ae5b9667
3 changed files with 9 additions and 9 deletions

View File

@ -45,8 +45,8 @@ statistic (fp, path_fcodes)
char *path_fcodes; /* for error message */
{
long lines, chars, size, big, zwerg, umlaut;
register u_char *p, *s;
register int c;
u_char *p, *s;
int c;
int count, longest_path;
int error = 0;
u_char bigram1[NBG], bigram2[NBG], path[MAXPATHLEN];
@ -151,8 +151,8 @@ fastfind
#endif /* MMAP */
{
register u_char *p, *s, *patend, *q, *foundchar;
register int c, cc;
u_char *p, *s, *patend, *q, *foundchar;
int c, cc;
int count, found, globflag;
u_char *cutoff;
u_char bigram1[NBG], bigram2[NBG], path[MAXPATHLEN + 2];

View File

@ -128,7 +128,7 @@ extern char *patprep(char *);
int
main(int argc, char **argv)
{
register int ch;
int ch;
char **dbv = NULL;
char *path_fcodes; /* locate database */
#ifdef MMAP

View File

@ -140,7 +140,7 @@ char *
patprep(name)
char *name;
{
register char *endmark, *p, *subp;
char *endmark, *p, *subp;
subp = globfree;
*subp++ = '\0'; /* set first element to '\0' */
@ -194,7 +194,7 @@ u_char *
tolower_word(word)
u_char *word;
{
register u_char *p;
u_char *p;
for(p = word; *p != '\0'; p++)
*p = TOLOWER(*p);
@ -221,7 +221,7 @@ getwm(p)
char buf[INTSIZE];
int i;
} u;
register int i, hi;
int i, hi;
/* the integer is stored by an offset of 14 (!!!) */
int i_max = MAXPATHLEN + OFFSET;
@ -254,7 +254,7 @@ int
getwf(fp)
FILE *fp;
{
register int word, hword;
int word, hword;
int i_max = MAXPATHLEN + OFFSET;
int i_min = -(MAXPATHLEN - OFFSET);