aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1997-08-21 22:34:19 +0000
committerJason Merrill <jason@yorick.cygnus.com>1997-08-21 22:34:19 +0000
commit6a624df1d7255538e2f7140ffda888b1dd5ab8d2 (patch)
treeb20d3f3f11d98e779a2fa42c5838318bbcbb0906
parent41f6cb5c3003240cab7fc87f7efa0ed936a68653 (diff)
Thu Aug 21 22:25:46 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* lex.c (real_yylex): Don't use getc directly. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14876 138bc75d-0d04-0410-961f-82ee72b054a4
-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 6744f7320bf..703695c0901 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 b2b0c504d28..23c448c69bb 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