]> sigrok.org Git - libsigrokdecode.git/commit
type_decoder: use ALL_ZERO for sentinels in method/member tables
authorGerhard Sittig <redacted>
Sat, 25 Dec 2021 18:52:30 +0000 (19:52 +0100)
committerGerhard Sittig <redacted>
Sun, 26 Dec 2021 12:45:09 +0000 (13:45 +0100)
commit7337906cd06569485cbb88ff837b1cfce29cfd48
tree903f87019ffc4c9689da6fa881edd60021ba4b85
parent11c6995e4bdaf176e1a38b8ee642217cdb98dfda
type_decoder: use ALL_ZERO for sentinels in method/member tables

Avoid the full listing of all-zero struct members in sentinel items of
object methods and class properties tables. Use the ALL_ZERO phrase
instead which better reflects what's intended, and reliably silences
warnings should structs' lengths differ across Python versions.
type_decoder.c