"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/fsmap.cc" between
ragel-7.0.0.10.tar.gz and ragel-7.0.0.11.tar.gz

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

fsmap.cc  (ragel-7.0.0.10):fsmap.cc  (ragel-7.0.0.11)
/* /*
* Copyright 2002-2004 Adrian Thurston <thurston@colm.net> * Copyright 2002-2018 Adrian Thurston <thurston@colm.net>
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the * deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is * sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions: * furnished to do so, subject to the following conditions:
* *
* The above copyright notice and this permission notice shall be included in al l * The above copyright notice and this permission notice shall be included in al l
* copies or substantial portions of the Software. * copies or substantial portions of the Software.
skipping to change at line 1128 skipping to change at line 1128
/* Test eof action tables. */ /* Test eof action tables. */
return CmpActionTable::compare( state1->eofActionTable, return CmpActionTable::compare( state1->eofActionTable,
state2->eofActionTable ); state2->eofActionTable );
} }
/* Invoked when a state looses its final state status and the leaving /* Invoked when a state looses its final state status and the leaving
* transition embedding data should be deleted. */ * transition embedding data should be deleted. */
void FsmAp::clearOutData( StateAp *state ) void FsmAp::clearOutData( StateAp *state )
{ {
/* Kill the out actions and priorities. */ /* Kill the out actions and priorities. */
state->outActionTable.empty();
state->outCondSpace = 0; state->outCondSpace = 0;
state->outCondKeys.empty(); state->outCondKeys.empty();
state->outActionTable.empty();
state->outPriorTable.empty(); state->outPriorTable.empty();
} }
bool FsmAp::hasOutData( StateAp *state ) bool FsmAp::hasOutData( StateAp *state )
{ {
return ( state->outActionTable.length() > 0 || return ( state->outActionTable.length() > 0 ||
state->outCondSpace != 0 || state->outCondSpace != 0 ||
state->outCondKeys.length() > 0 || state->outCondKeys.length() > 0 ||
state->outPriorTable.length() > 0 || state->outPriorTable.length() > 0 ||
state->outCondSpace != 0 ); state->outCondSpace != 0 );
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)