]> sigrok.org Git - libsigrok.git/commit
output/wavedrom: separate data processing logic from init/cleanup
authorGerhard Sittig <redacted>
Sat, 21 Dec 2019 11:27:18 +0000 (12:27 +0100)
committerGerhard Sittig <redacted>
Sat, 21 Dec 2019 12:58:43 +0000 (13:58 +0100)
commit7a0d1bdc2044cfb1836caaf9e28c1929d06bf66d
treec57b454840be1a8c91c4d58af300f9f2f492ff42
parentdd5735c998264699d586a52b6ed5b4bf64397ee0
output/wavedrom: separate data processing logic from init/cleanup

Rearrange the order of routines in the wavedrom output module. Keep the
flow of .receive() -> .process_logic() -> .wavedrom_render() in one common
group of routines, which is not disrupted by the .init() and .cleanup()
routines which are kind of boilerplate in the source file. This increases
readability and maintainability.
src/output/wavedrom.c