]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: Instruction codes named as enum
authorMaria Jan Matejka <mq@jmq.cz>
Thu, 19 Oct 2017 10:39:44 +0000 (12:39 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Tue, 13 Mar 2018 15:29:33 +0000 (16:29 +0100)
commit5a14df395053f4094a1e3ebea98e3487cbfc0e63
tree08c1fb75e34628239034a3f2a59fc1bc3006c765
parent2d6d4b80539be13aa53c6751fb33689b263e4010
Filter: Instruction codes named as enum

The two-letter instructions were quite messy but they could be easily
read from memory dumps. Now GDB (since 2012) supports pretty printing
enum values and GCC checks the switch construction for missing enum
values so we are converting the nice two-byte values to enums.

Anyway, the enum still keeps the old two-byte values to be able to read
the instruction codes even without GDB from plain memory dump.
conf/confbase.Y
filter/config.Y
filter/f-util.c
filter/filter.c
filter/filter.h