There's a huge toe-stubber awaiting future maintenance as reflected in that commit below which deals with the addition of new enumerators to the Item_table. Namely, whenever the table is grown, one must remember to also change that existing 'logical_end' enumerator's value. Well, not anymore! Since that MAXTABLE macro was added to the procps-private.h header we can now also exploit it so a 'logical_end' automatically tracks table size. This change also renders some code associated with the ITEMTABLE_DEBUG #define unnecessary. So it's gone too. Reference(s): . 08/2016, add new enumerators commit09e1886c9e. 08/2020, added MAXTABLE macro commitc865b06c30. 08/2020, introduced ITEMTABLE_DEBUG commit92d0297e1eSigned-off-by: Jim Warner <james.warner@comcast.net>
32 KiB
32 KiB