added index
This commit is contained in:
parent
32d12a9c7a
commit
044587ec57
1 changed files with 12 additions and 0 deletions
|
@ -141,6 +141,8 @@ Key keywords [] ={
|
||||||
0, 0, 0, 0
|
0, 0, 0, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
char *index();
|
||||||
|
|
||||||
/* Keyword index table */
|
/* Keyword index table */
|
||||||
|
|
||||||
int kex[27];
|
int kex[27];
|
||||||
|
@ -470,3 +472,13 @@ yylex()
|
||||||
}
|
}
|
||||||
return(*cptr++);
|
return(*cptr++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *
|
||||||
|
index(s, c)
|
||||||
|
register char *s, c;
|
||||||
|
{
|
||||||
|
while (*s)
|
||||||
|
if (*s++ == c)
|
||||||
|
return --s;
|
||||||
|
return (char *)0;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue