-Wall -Werror -W -pedantic clean
This commit is contained in:
18
lex.c
18
lex.c
@ -1,4 +1,4 @@
|
||||
/** $MirBSD: lex.c,v 1.4 2004/09/21 11:57:12 tg Exp $ */
|
||||
/** $MirBSD: lex.c,v 1.5 2004/10/28 11:03:23 tg Exp $ */
|
||||
/* $OpenBSD: lex.c,v 1.18 2003/08/06 21:08:05 millert Exp $ */
|
||||
|
||||
/*
|
||||
@ -103,9 +103,9 @@ yylex(cf)
|
||||
{
|
||||
Lex_state states[STATE_BSIZE], *statep;
|
||||
State_info state_info;
|
||||
register int c, state;
|
||||
int c, state;
|
||||
XString ws; /* expandable output word */
|
||||
register char *wp; /* output word pointer */
|
||||
char *wp; /* output word pointer */
|
||||
char *sp, *dp;
|
||||
int c2;
|
||||
|
||||
@ -750,7 +750,7 @@ Done:
|
||||
if ((cf & ALIAS) && (p = tsearch(&aliases, ident, h))
|
||||
&& (p->flag & ISSET))
|
||||
{
|
||||
register Source *s;
|
||||
Source *s;
|
||||
|
||||
for (s = source; s->type == SALIAS; s = s->next)
|
||||
if (s->u.tblp == p)
|
||||
@ -772,7 +772,7 @@ Done:
|
||||
static void
|
||||
gethere()
|
||||
{
|
||||
register struct ioword **p;
|
||||
struct ioword **p;
|
||||
|
||||
for (p = heres; p < herep; p++)
|
||||
readhere(*p);
|
||||
@ -787,7 +787,7 @@ static void
|
||||
readhere(iop)
|
||||
struct ioword *iop;
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
char *volatile eof;
|
||||
char *eofp;
|
||||
int skiptabs;
|
||||
@ -874,7 +874,7 @@ pushs(type, areap)
|
||||
int type;
|
||||
Area *areap;
|
||||
{
|
||||
register Source *s;
|
||||
Source *s;
|
||||
|
||||
s = (Source *) alloc(sizeof(Source), areap);
|
||||
s->type = type;
|
||||
@ -897,8 +897,8 @@ pushs(type, areap)
|
||||
static int
|
||||
getsc__()
|
||||
{
|
||||
register Source *s = source;
|
||||
register int c;
|
||||
Source *s = source;
|
||||
int c;
|
||||
|
||||
while ((c = *s->str++) == 0) {
|
||||
s->str = NULL; /* return 0 for EOF by default */
|
||||
|
Reference in New Issue
Block a user