aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1997-08-21 22:34:19 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-08-21 18:34:19 -0400
commit8975416cfb6269ad94b6330d42960cca8b0925b7 (patch)
treeb20d3f3f11d98e779a2fa42c5838318bbcbb0906
parentf1e182826e4c864f8541a59629691eda93c40e96 (diff)
downloadgcc-8975416cfb6269ad94b6330d42960cca8b0925b7.zip
gcc-8975416cfb6269ad94b6330d42960cca8b0925b7.tar.gz
gcc-8975416cfb6269ad94b6330d42960cca8b0925b7.tar.bz2
lex.c (real_yylex): Don't use getc directly.
Thu Aug 21 22:25:46 1997 J"orn Rennecke <amylaar@cygnus.co.uk> * lex.c (real_yylex): Don't use getc directly. From-SVN: r14876
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/lex.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6744f73..703695c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 21 22:25:46 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
+
+ * lex.c (real_yylex): Don't use getc directly.
+
Wed Aug 20 17:25:08 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (is_subseq): Don't try to be clever.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index b2b0c50..23c448c 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -3141,7 +3141,7 @@ real_yylex ()
p = extend_token_buffer (p);
*p++ = c;
- c = getc (finput);
+ c = getch ();
}
if (linemode && c == '\n')
@@ -3652,7 +3652,7 @@ real_yylex ()
p = extend_token_buffer (p);
*p++ = c;
*p = 0;
- c = getc (finput);
+ c = getch ();
}
/* The second argument, machine_mode, of REAL_VALUE_ATOF
@@ -3760,7 +3760,7 @@ real_yylex ()
if (p >= token_buffer + maxtoken - 3)
p = extend_token_buffer (p);
*p++ = c;
- c = getc (finput);
+ c = getch ();
}
/* If the constant is not long long and it won't fit in an