typedef in global