Deleted Added
sdiff udiff text old ( 10963:51f40b101a56 ) new ( 10964:2b4fe083d17b )
full compact
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 1296 unchanged lines hidden (view full) ---

1305
1306 for trans in self.transitions:
1307 case_string = "%s_State_%s, %s_Event_%s" % \
1308 (self.ident, trans.state.ident, self.ident, trans.event.ident)
1309
1310 case = self.symtab.codeFormatter()
1311 # Only set next_state if it changes
1312 if trans.state != trans.nextState:
1313 ns_ident = trans.nextState.ident
1314 case('next_state = ${ident}_State_${ns_ident};')
1315
1316 actions = trans.actions
1317 request_types = trans.request_types
1318
1319 # Check for resources
1320 case_sorter = []
1321 res = trans.resources
1322 for key,val in res.iteritems():

--- 259 unchanged lines hidden ---