summaryrefslogtreecommitdiff
path: root/test/repetition.rl
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:44:50 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:44:50 +0900
commit7e13e5fc62b81ffc5728006ddb560478ac3f1576 (patch)
tree813d127306e4518e2ab20cf03f7dea33d14a4210 /test/repetition.rl
parent12056158053532946b53b6249cb0e6cfd4580051 (diff)
downloadragel-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.rl4
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 );