summaryrefslogtreecommitdiff
path: root/test/mailbox1.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/mailbox1.rl
parent12056158053532946b53b6249cb0e6cfd4580051 (diff)
downloadragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.gz
ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.bz2
ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.zip
Tizen 2.1 base
Diffstat (limited to 'test/mailbox1.rl')
-rw-r--r--test/mailbox1.rl11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/mailbox1.rl b/test/mailbox1.rl
index 89e8775..ea23173 100644
--- a/test/mailbox1.rl
+++ b/test/mailbox1.rl
@@ -1,7 +1,8 @@
/*
* @LANG: c++
* @CFLAGS: -I../aapl
- * @ALLOW_GENFLAGS: -T0 -T1 -F0 -F1 -G0 -G1 -G2 -P
+ *
+ * Test works with split code gen.
*/
/*
@@ -98,11 +99,11 @@ void MBox::init( )
%% write init;
}
-void MBox::execute( char *data, int len )
+void MBox::execute( const char *data, int len )
{
MBox *fsm = this;
- char *p = data;
- char *pe = data + len;
+ const char *p = data;
+ const char *pe = data + len;
%%{
access fsm->;
write exec;
@@ -120,7 +121,7 @@ int MBox::finish( )
MBox mbox;
-void test( char *buf )
+void test( const char *buf )
{
int len = strlen( buf );
mbox.init();