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/mailbox3.rl | |
parent | 12056158053532946b53b6249cb0e6cfd4580051 (diff) | |
download | ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.gz ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.tar.bz2 ragel-7e13e5fc62b81ffc5728006ddb560478ac3f1576.zip |
Tizen 2.1 base
Diffstat (limited to 'test/mailbox3.rl')
-rw-r--r-- | test/mailbox3.rl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/mailbox3.rl b/test/mailbox3.rl index e8089bb..8039f80 100644 --- a/test/mailbox3.rl +++ b/test/mailbox3.rl @@ -129,15 +129,15 @@ using std::endl; #define BUFSIZE 8192 -void test( char *buf ) +void test( const char *buf ) { int cs, len = strlen( buf ); - char *preserve = 0, *ws = 0; + const char *preserve = 0, *ws = 0; int hlen = 0; %% write init; - char *p = buf; - char *pe = p + len; + const char *p = buf; + const char *pe = p + len; %% write exec; if ( cs < mailbox_first_final ) { @@ -150,7 +150,7 @@ int main() { test( "From user@host.com Wed Nov 28 13:30:05 2001\n" - "From: \"Adrian D. Thurston\" <thurston@cs.queensu.ca>\n" + "From: \"Adrian D. Thurston\" <thurston@complang.org>\n" "Subject: the squirrel has landed\n" "\n" "Message goes here. \n" @@ -168,7 +168,7 @@ int main() test( "From user@host.com Wed Nov 28 13:30:05 2001\n" "To: \"(kill 2)\" some guy <sg@net.com>\n" - "From: \"Adrian D. Thurston this name is far too long\" <thurston@cs.queensu.ca>\n" + "From: \"Adrian D. Thurston this name is far too long\" <thurston@complang.org>\n" "Subject: the squirrel has landed\n" "\n" "From user2@host2.com Wed Nov 28 13:30:05 2001\n" @@ -204,7 +204,7 @@ int main() #ifdef _____OUTPUT_____ ------ FROM - "Adrian D. Thurston" | thurston@cs.queensu.ca + "Adrian D. Thurston" | thurston@complang.org SUBJECT the squirrel has landed ------ |