StreamTokenizer.java (TT_NONE): Now private.

* java/io/StreamTokenizer.java (TT_NONE): Now private.
	(nextToken): Handle backslashed newline.  From Oskar Liljeblad.
	For PR java.io/301.

From-SVN: r35511
This commit is contained in:
Tom Tromey 2000-08-06 00:49:29 +00:00 committed by Tom Tromey
parent f0333785db
commit 1ed67a71e4
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2000-08-04 Tom Tromey <tromey@cygnus.com>
* java/io/StreamTokenizer.java (TT_NONE): Now private.
(nextToken): Handle backslashed newline. From Oskar Liljeblad.
For PR java.io/301.
2000-08-03 Warren Levy <warrenl@cygnus.com>
* java/io/ObjectInputStream.java (readFields): Turn off

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1998, 1999 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@ -37,7 +37,7 @@ public class StreamTokenizer
public static final int TT_WORD = -3;
/** A constant indicating that no tokens have been read yet. */
public static final int TT_NONE = -4;
private static final int TT_NONE = -4;
/**
* Contains the type of the token read resulting from a call to nextToken
@ -365,6 +365,10 @@ public class StreamTokenizer
break;
case 'v': ch = 0xB;
break;
case '\n': ch = '\n';
break;
case '\r': ch = '\r';
break;
case '\"':
case '\'':
case '\\':