"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/mailbox.cpp" between
ragel-6.9.tar.gz and ragel-6.10.tar.gz

About: Ragel compiles executable finite state machines from regular languages (C, C++, Obj-C, C#, D, Java, Go and Ruby).

mailbox.cpp  (ragel-6.9):mailbox.cpp  (ragel-6.10)
skipping to change at line 585 skipping to change at line 585
{ {
headName.append(0); headName.append(0);
if ( strcmp( headName.data, "From" ) == 0 || if ( strcmp( headName.data, "From" ) == 0 ||
strcmp( headName.data, "To" ) == 0 || strcmp( headName.data, "To" ) == 0 ||
strcmp( headName.data, "Subject" ) == 0 ) strcmp( headName.data, "Subject" ) == 0 )
{ {
/* Print the header name, then jump to a machine the will display /* Print the header name, then jump to a machine the will display
* the contents. */ * the contents. */
cout << headName.data << ":"; cout << headName.data << ":";
headName.clear(); headName.clear();
{stack[top++] = 34; goto st103;} {stack[top++] = 34;goto st103;}
} }
headName.clear(); headName.clear();
{stack[top++] = 34; goto st102;} {stack[top++] = 34;goto st102;}
} }
goto st34; goto st34;
st34: st34:
if ( ++p == pe ) if ( ++p == pe )
goto _test_eof34; goto _test_eof34;
case 34: case 34:
#line 603 "mailbox.cpp" #line 603 "mailbox.cpp"
if ( (*p) == 10 ) if ( (*p) == 10 )
goto tr38; goto tr38;
if ( (*p) > 57 ) { if ( (*p) > 57 ) {
skipping to change at line 1493 skipping to change at line 1493
#line 90 "mailbox.rl" #line 90 "mailbox.rl"
{headContent.append(' ');} {headContent.append(' ');}
break; break;
case 99: case 99:
#line 92 "mailbox.rl" #line 92 "mailbox.rl"
{ {
headContent.append(0); headContent.append(0);
cout << headContent.data << endl; cout << headContent.data << endl;
headContent.clear(); headContent.clear();
p--; p--;
{cs = stack[--top];goto _again;} {cs = stack[--top]; if ( p == pe )
goto _test_eof;
goto _again;}
} }
break; break;
#line 1503 "mailbox.cpp" #line 1505 "mailbox.cpp"
} }
} }
_out: {} _out: {}
} }
#line 154 "mailbox.rl" #line 154 "mailbox.rl"
if ( cs == MailboxScanner_error ) if ( cs == MailboxScanner_error )
return -1; return -1;
 End of changes. 4 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS