Author: toad Date: 2009-03-20 18:36:24 +0000 (Fri, 20 Mar 2009) New Revision: 26116
Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java Log: Regenerate with jflex 1.4.1, this is more common. Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java =================================================================== --- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java 2009-03-20 06:06:00 UTC (rev 26115) +++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java 2009-03-20 18:36:24 UTC (rev 26116) @@ -1,4 +1,4 @@ -/* The following code was generated by JFlex 1.4.2 on 3/20/09 2:03 PM */ +/* The following code was generated by JFlex 1.4.1 on 20/03/09 18:35 */ /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See @@ -17,8 +17,8 @@ /** * This class is a scanner generated by - * <a href="http://www.jflex.de/">JFlex</a> 1.4.2 - * on 3/20/09 2:03 PM from the specification file + * <a href="http://www.jflex.de/">JFlex</a> 1.4.1 + * on 20/03/09 18:35 from the specification file * <tt>src/freenet/clients/http/filter/CSSTokenizerFilter.jflex</tt> */ class CSSTokenizerFilter { @@ -32,16 +32,6 @@ /** lexical states */ public static final int YYINITIAL = 0; - /** - * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l - * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l - * at the beginning of a line - * l is of the form l = 2*k, k a non negative integer - */ - private static final int ZZ_LEXSTATE[] = { - 0, 0 - }; - /** * Translates characters to character classes */ @@ -878,6 +868,9 @@ /** the textposition at the last accepting state */ private int zzMarkedPos; + /** the textposition at the last state to be included in yytext */ + private int zzPushbackPos; + /** the current text position in the buffer */ private int zzCurrentPos; @@ -1147,6 +1140,7 @@ zzEndRead-= zzStartRead; zzCurrentPos-= zzStartRead; zzMarkedPos-= zzStartRead; + zzPushbackPos-= zzStartRead; zzStartRead = 0; } @@ -1162,23 +1156,13 @@ int numRead = zzReader.read(zzBuffer, zzEndRead, zzBuffer.length-zzEndRead); - if (numRead > 0) { + if (numRead < 0) { + return true; + } + else { zzEndRead+= numRead; return false; } - // unlikely but not impossible: read 0 characters, but not at end of stream - if (numRead == 0) { - int c = zzReader.read(); - if (c == -1) { - return true; - } else { - zzBuffer[zzEndRead++] = (char) c; - return false; - } - } - - // numRead < 0 - return true; } @@ -1209,7 +1193,7 @@ zzAtBOL = true; zzAtEOF = false; zzEndRead = zzStartRead = 0; - zzCurrentPos = zzMarkedPos = 0; + zzCurrentPos = zzMarkedPos = zzPushbackPos = 0; yyline = yychar = yycolumn = 0; zzLexicalState = YYINITIAL; } @@ -1337,7 +1321,7 @@ zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; - zzState = ZZ_LEXSTATE[zzLexicalState]; + zzState = zzLexicalState; zzForAction: { _______________________________________________ cvs mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
