functions to convert fdecls to finfo