From: Gerhard Sittig Date: Fri, 14 Jul 2023 05:40:03 +0000 (+0200) Subject: i2cfilter: rephrase decoder implementation for maintainability X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=bb6f9c500e4119aa9558dfc66ba82bf7ef3772c5;hp=bb6f9c500e4119aa9558dfc66ba82bf7ef3772c5;p=libsigrokdecode.git i2cfilter: rephrase decoder implementation for maintainability The previous implementation suffered from a severe issue (it kept referencing caller's data beyond its validity) and from style issues (redundant details, conditions scattered across distant locations). Rephrase (actually rework) the decoder implementation to improve readability as well as maintainability. Extend the TODO list while the existing logic better lends itself to future extensions. Reword comments while we are here. Some earlier constraints no longer apply or were unfortunately phrased. ---