fix, check that keys found in the state string are actually surrounded by separators (SPC)

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, refactor adding and rem'ing of state line based on key (into wipe_st() and add_st())

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
hack, break const promise when dissecting an event descriptor

This affects the undocumented A->B state transition syntax,
after dissection this will be A\nul>B just so that strstr()
in wipe_st() can do its job.

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
Merge branch 'tool/echse-state' into next

* tool/echse-state:
  hack, break const promise when dissecting an event descriptor
  minor, refactor adding and rem'ing of state line based on key (into wipe_st() and add_st())
  fix, check that keys found in the state string are actually surrounded by separators (SPC)
Merge branch 'next'

* next:
  hack, break const promise when dissecting an event descriptor
  minor, refactor adding and rem'ing of state line based on key (into wipe_st() and add_st())
  fix, check that keys found in the state string are actually surrounded by separators (SPC)