Many changes:

- added some data flow stuff
- many cosmetic changes
This commit is contained in:
ceriel 1994-12-06 09:12:21 +00:00
parent ef0ecb31b2
commit 7393f8923c

View file

@ -108,7 +108,7 @@ option(str)
break; break;
case 'S': case 'S':
{ {
register i = atoi(++str); int i = atoi(++str);
if (i <= 0 || i > MAXTAB) { if (i <= 0 || i > MAXTAB) {
fprintf(stderr, "%s: size would exceed maximum\n", fprintf(stderr, "%s: size would exceed maximum\n",
@ -127,7 +127,7 @@ option(str)
InitTable(ival) InitTable(ival)
char *ival; char *ival;
{ {
register i; int i;
for (i = 0; i < TabSize; i++) { for (i = 0; i < TabSize; i++) {
Table[i] = 0; Table[i] = 0;
@ -140,7 +140,7 @@ InitTable(ival)
PrintTable() PrintTable()
{ {
register i; int i;
for (i = 0; i < TabSize; i++) { for (i = 0; i < TabSize; i++) {
if (Table[i]) { if (Table[i]) {
@ -232,7 +232,7 @@ int
setval(ch, nm) setval(ch, nm)
char *nm; char *nm;
{ {
register char **p = &Table[ch]; char **p = &Table[ch];
if (ch < 0 || ch >= TabSize) { if (ch < 0 || ch >= TabSize) {
fprintf(stderr, "Illegal index: %d\n", ch); fprintf(stderr, "Illegal index: %d\n", ch);
@ -249,9 +249,9 @@ int
quoted(pstr) quoted(pstr)
char **pstr; char **pstr;
{ {
register int ch; int ch;
register int i; int i;
register char *str = *pstr; char *str = *pstr;
if ((*++str >= '0') && (*str <= '9')) { if ((*++str >= '0') && (*str <= '9')) {
ch = 0; ch = 0;
@ -295,7 +295,7 @@ getline(s, n, fp)
char *s; char *s;
FILE *fp; FILE *fp;
{ {
register c = getc(fp); int c = getc(fp);
char *str = s; char *str = s;
while (n--) { while (n--) {