summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-06-21 06:31:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-06-21 06:31:12 +0000
commit53838a0e58027072c1ea8617342c2137d9fa5313 (patch)
treefffefdd164a048925196a437c208c1b21f687bbb /parse.y
parent7e774e049258dbda55edfdac9c5022c3d8fbdcf1 (diff)
1.2.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y12
1 files changed, 5 insertions, 7 deletions
diff --git a/parse.y b/parse.y
index 752387f0d5..1c7b40d841 100644
--- a/parse.y
+++ b/parse.y
@@ -19,11 +19,6 @@
#include "st.h"
#include <stdio.h>
-/* hack for bison */
-#ifdef const
-# undef const
-#endif
-
#define ID_SCOPE_SHIFT 3
#define ID_SCOPE_MASK 0x07
#define ID_LOCAL 0x01
@@ -1835,8 +1830,9 @@ read_escape()
int i;
for (i=0; i<2; i++) {
- buf[i] = nextc();
- if (buf[i] == -1) goto eof;
+ int cc = nextc();
+ if (cc == -1) goto eof;
+ buf[i] = cc;
if (!ISXDIGIT(buf[i])) {
pushback(buf[i]);
break;
@@ -3249,6 +3245,8 @@ str_extend(list, term)
newtok();
return list;
}
+ tokadd(c);
+ break;
case '\n':
sourceline++;
default: