diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:44:50 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:44:50 +0900 |
commit | 7e13e5fc62b81ffc5728006ddb560478ac3f1576 (patch) | |
tree | 813d127306e4518e2ab20cf03f7dea33d14a4210 /test/repetition.rl | |
parent | 12056158053532946b53b6249cb0e6cfd4580051 (diff) | |
download | ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.gz ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.bz2 ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.zip |
Tizen 2.1 base
Diffstat (limited to 'test/repetition.rl')
-rw-r--r-- | test/repetition.rl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/repetition.rl b/test/repetition.rl index 23638b3..328cfa9 100644 --- a/test/repetition.rl +++ b/test/repetition.rl @@ -7,6 +7,7 @@ #include <iostream> #include <stdlib.h> #include <stdio.h> +#include <string.h> using namespace std; @@ -62,7 +63,6 @@ int Rep::execute( const char *_data, int _len ) int Rep::finish( ) { - %% write eof; if ( cs == Rep_error ) return -1; if ( cs >= Rep_first_final ) @@ -70,7 +70,7 @@ int Rep::finish( ) return 0; } -void test( char *buf ) +void test( const char *buf ) { Rep rep; int len = strlen( buf ); |