Use typedef for global flags pointer.