projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(genAnd): accessing LSB/MSB by rotating acc
[fw/sdcc]
/
src
/
altlex.c
diff --git
a/src/altlex.c
b/src/altlex.c
index 5b84d12d17ca6df790442a26cfd0a376f572c25b..a7115d6f4262c0f687ac2ffbfae13c980029edd3 100644
(file)
--- a/
src/altlex.c
+++ b/
src/altlex.c
@@
-47,7
+47,7
@@
extern char *filename;
FILE *yyin;
FILE *yyin;
-int
y
ylineno;
+int
m
ylineno;
char *currFname;
char *yytext;
char *currFname;
char *yytext;
@@
-234,12
+234,12
@@
check_token (const char *sz)
/* check if it is in the typedef table */
if (findSym (TypedefTab, NULL, sz))
{
/* check if it is in the typedef table */
if (findSym (TypedefTab, NULL, sz))
{
- str
cpy (yylval.yychar, sz
);
+ str
ncpyz (yylval.yychar, sz, sizeof(yylval.yychar)
);
return TYPE_NAME;
}
else
{
return TYPE_NAME;
}
else
{
- str
cpy (yylval.yychar, sz
);
+ str
ncpyz (yylval.yychar, sz, sizeof(yylval.yychar)
);
return IDENTIFIER;
}
}
return IDENTIFIER;
}
}
@@
-292,8
+292,8
@@
handle_line (void)
if (line[0] == '\0')
error ("Error in number in #line");
/* This is weird but cpp seems to add an extra three to the line no */
if (line[0] == '\0')
error ("Error in number in #line");
/* This is weird but cpp seems to add an extra three to the line no */
-
y
ylineno = atoi (line) - 3;
- lineno =
y
ylineno;
+
m
ylineno = atoi (line) - 3;
+ lineno =
m
ylineno;
/* Fetch the filename if there is one */
while (c == '\t' || c == ' ')
c = GETC ();
/* Fetch the filename if there is one */
while (c == '\t' || c == ' ')
c = GETC ();
@@
-325,8
+325,8
@@
static INLINE int
check_newline (void)
{
int c;
check_newline (void)
{
int c;
-
y
ylineno++;
- lineno =
y
ylineno;
+
m
ylineno++;
+ lineno =
m
ylineno;
/* Skip any leading white space */
c = GETC ();
/* Skip any leading white space */
c = GETC ();
@@
-916,7
+916,7
@@
int
altlex_testparse (const char *input)
{
/* Fiddle with the read-ahead buffer to insert ourselves */
altlex_testparse (const char *input)
{
/* Fiddle with the read-ahead buffer to insert ourselves */
- str
cpy (linebuf, input
);
+ str
ncpyz (linebuf, input, sizeof(linebuf)
);
linelen = strlen (linebuf) + 1;
linepos = 0;
linelen = strlen (linebuf) + 1;
linepos = 0;