Fix warning about uninitialized lineno variable
Detect renames when generating the announcement
Refactor defined enum maps to contain size information

The existing struct enum_map is renamed to enum_map_entry.