separate typedef from other defs