aboutsummaryrefslogtreecommitdiff
path: root/5.20/token.c
diff options
context:
space:
mode:
Diffstat (limited to '5.20/token.c')
-rw-r--r--5.20/token.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/5.20/token.c b/5.20/token.c
index 0a69b09..b04acef 100644
--- a/5.20/token.c
+++ b/5.20/token.c
@@ -22,7 +22,7 @@ char *storspec[] = {
"static"
};
-char *datatyp[] = {
+char *typespec[] = {
"char",
"int",
"long",
@@ -36,8 +36,6 @@ char *datatyp[] = {
int gettoken(void)
{
char c, *p = token;
- char getch(void);
- void ungetch(char);
if (prevtoken == YES) {
prevtoken = NO;
@@ -97,7 +95,7 @@ int peaktoken()
return type;
}
-int isdatatyp(void)
+int isdtspec(void)
{
int i, len;
@@ -109,8 +107,8 @@ int isdatatyp(void)
if(!strcmp(token, storspec[i]))
return 1;
- for (i = 0, len = ARR_SIZE(datatyp); i < len; ++i)
- if(!strcmp(token, datatyp[i]))
+ for (i = 0, len = ARR_SIZE(typespec); i < len; ++i)
+ if(!strcmp(token, typespec[i]))
return 1;
return 0;