libfsm
libfsm copied to clipboard
`lx -l dump` does not define `lgetc` & `getc_opaque` if `-g` is missing
If lx -l dump is used without any particular -g flag, it generates a main that declares lgetc and getc_opaque, but doesn't define them, leading to a program that doesn't ever get input.
In this case you might want to provide those yourself, although there wouldn't be a prototype in scope. So I don't want to force the generated implementations to be present. Any thoughts?