[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-oro-dev
Subject: cvs commit: jakarta-oro/src/java/org/apache/oro/text/regex Perl5Compiler.java Perl5Matcher.java
From: dfs () apache ! org
Date: 2001-05-20 10:52:28
[Download RAW message or body]
dfs 01/05/20 03:52:28
Modified: src/java/org/apache/oro/text/regex Perl5Compiler.java
Perl5Matcher.java
Log:
Changed some comments and spacing in the process of investigating what
turned out to be a bogus bug.
Revision Changes Path
1.12 +4 -4 jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java
Index: Perl5Compiler.java
===================================================================
RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Perl5Compiler.java 2001/05/17 21:59:33 1.11
+++ Perl5Compiler.java 2001/05/20 10:52:26 1.12
@@ -58,7 +58,7 @@
*/
/*
- * $Id: Perl5Compiler.java,v 1.11 2001/05/17 21:59:33 dfs Exp $
+ * $Id: Perl5Compiler.java,v 1.12 2001/05/20 10:52:26 dfs Exp $
*/
import java.util.*;
@@ -419,8 +419,7 @@
private void __programAddTail(int current, int value) {
int scan, temp, offset;
-
- if(__program== null || current == OpCode._NULL_OFFSET)
+ if(__program == null || current == OpCode._NULL_OFFSET)
return;
scan = current;
@@ -442,7 +441,7 @@
private void __programAddOperatorTail(int current, int value) {
- if(__program== null || current == OpCode._NULL_OFFSET ||
+ if(__program == null || current == OpCode._NULL_OFFSET ||
OpCode._opType[__program[current]] != OpCode._BRANCH)
return;
__programAddTail(OpCode._getNextOperator(current), value);
@@ -1286,6 +1285,7 @@
__getNextChar();
__emitCode(OpCode._END);
+
return offset;
}
1.14 +3 -3 jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java
Index: Perl5Matcher.java
===================================================================
RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Perl5Matcher.java 2001/05/17 21:59:33 1.13
+++ Perl5Matcher.java 2001/05/20 10:52:26 1.14
@@ -59,7 +59,7 @@
/*
- * $Id: Perl5Matcher.java,v 1.13 2001/05/17 21:59:33 dfs Exp $
+ * $Id: Perl5Matcher.java,v 1.14 2001/05/20 10:52:26 dfs Exp $
*/
import java.io.IOException;
import java.util.*;
@@ -1245,7 +1245,7 @@
while(arg >= line || (arg == Character.MAX_VALUE && line > 0)) {
// there may be a bug here with respect to
- // __inputOffset >= __input.length, but it seems to be right for
+ // __inputOffset >= __endOffset, but it seems to be right for
// now. the issue is with __inputOffset being reset later.
// is this test really supposed to happen here?
if(current == -1000 || __inputOffset >= __endOffset ||
@@ -1272,7 +1272,7 @@
while(arg >= line) {
// there may be a bug here with respect to
- // __inputOffset >= __input.length, but it seems to be right for
+ // __inputOffset >= __endOffset, but it seems to be right for
// now. the issue is with __inputOffset being reset later.
// is this test really supposed to happen here?
if(current == -1000 || __inputOffset >= __endOffset ||
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic