diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-23 04:03:19 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-10-24 15:30:58 +0000 |
commit | a568af25d2a8382265b44c9b2b3a72ca504d2443 (patch) | |
tree | 00f9ea83078e6de6434a9bdefdeaa06ab75b69eb /tests/fsm/fsm_test.err | |
parent | 37f465e275bea35d36b0763bfaef759792a9031f (diff) |
contrib/fsm-to-dot.py: some tweaks that help with osmo-bsc's new FSMs
Combine the C source file name and the string name into the fsm's internal name
token, and use it in most places instead of the plain struct name: osmo-bsc's
new FSMs have identical struct names in each static c context.
Output in a file name that includes all of these more detailed name tokens.
Also parse '(1 << EVENT)' as event names.
Note that besides this patch, there are also some tweaks to the osmo-bsc patch
that improve the fsm-to-dot experience...
- call fsm-to-dot for single files to avoid name conflicts, or rename each
struct as a unique name.
- Add comments for the event name a callback is intended for, so that not all
transitions are interpreted as TEARDOWN (because it is invoked in common
error handling, which causes the script to interpret it as the causing
event). (or change the event-checking if into a switch that names the valid
event and has a default case for all others.)
Change-Id: Ib60df7fd19efc99ba9fe797f14c0e3239c4bea20
Diffstat (limited to 'tests/fsm/fsm_test.err')
0 files changed, 0 insertions, 0 deletions