katef / libfsm

DFA regular expression library & friends
BSD 2-Clause "Simplified" License
931 stars 52 forks source link

src/libfsm/print/c.c: Add opaque argument to generated DFA functions. #465

Closed silentbicycle closed 4 months ago

silentbicycle commented 5 months ago

The generated functions for FSM_IO_STR and FSM_IO_PAIR didn't include a void *opaque to pass other state, so add it. For example, this could be used to pass info about which endids matched.