Include the offset of p in the test.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 8 Jun 2007 19:51:30 +0000 (19:51 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 8 Jun 2007 19:51:30 +0000 (19:51 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@235 052ea7fc-9027-0410-9066-f65837a77df0

test/cppscan3.rl

index afe832d..d08e1a2 100644 (file)
@@ -143,6 +143,8 @@ void Scanner::execute( char *data, int len )
        char *pe = data + len;
 
        %% write exec;
+
+       cout << "P: " << (p - data) << endl;
 }
 
 int Scanner::finish( )
@@ -245,6 +247,7 @@ int main()
 <241> 
 
 <195> _hithere22
+P: 53
 <193> '\''
 <192> "\n\d'\""
 <241> 
@@ -277,5 +280,7 @@ int main()
 <242> //
 
 <242> /* * */
+P: 56
+P: 1
 PARSE ERROR
 #endif