Skip to content

Commit 8975416

Browse files
J"orn RenneckeJason Merrill
J"orn Rennecke
authored and
Jason Merrill
committed
lex.c (real_yylex): Don't use getc directly.
Thu Aug 21 22:25:46 1997 J"orn Rennecke <[email protected]> * lex.c (real_yylex): Don't use getc directly. From-SVN: r14876
1 parent f1e1828 commit 8975416

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

gcc/cp/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Thu Aug 21 22:25:46 1997 J"orn Rennecke <[email protected]>
2+
3+
* lex.c (real_yylex): Don't use getc directly.
4+
15
Wed Aug 20 17:25:08 1997 Jason Merrill <[email protected]>
26

37
* call.c (is_subseq): Don't try to be clever.

gcc/cp/lex.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3141,7 +3141,7 @@ real_yylex ()
31413141
p = extend_token_buffer (p);
31423142

31433143
*p++ = c;
3144-
c = getc (finput);
3144+
c = getch ();
31453145
}
31463146

31473147
if (linemode && c == '\n')
@@ -3652,7 +3652,7 @@ real_yylex ()
36523652
p = extend_token_buffer (p);
36533653
*p++ = c;
36543654
*p = 0;
3655-
c = getc (finput);
3655+
c = getch ();
36563656
}
36573657

36583658
/* The second argument, machine_mode, of REAL_VALUE_ATOF
@@ -3760,7 +3760,7 @@ real_yylex ()
37603760
if (p >= token_buffer + maxtoken - 3)
37613761
p = extend_token_buffer (p);
37623762
*p++ = c;
3763-
c = getc (finput);
3763+
c = getch ();
37643764
}
37653765

37663766
/* If the constant is not long long and it won't fit in an

0 commit comments

Comments
 (0)