txtinfo: simplify setup of the functions table