Skip to content
Snippets Groups Projects
  • Alan Modra's avatar
    945efa5c
    Tidy type handling in binutils/rdcoff.c · 945efa5c
    Alan Modra authored
    There isn't really any good reason for code in rdcoff.c to distinguish
    between "basic" types and any other type.  This patch dispenses with
    the array reserved for basic types and instead handles all types using
    coff_get_slot, simplifying the code.
    
    	* rdcoff.c (struct coff_types, coff_slots): Merge.  Delete
    	coff_slots.
    	(T_MAX): Delete.
    	(parse_coff_base_type): Use coff_get_slot to store baseic types.
    	(coff_get_slot, parse_coff_type, parse_coff_base_type),
    	(parse_coff_struct_type, parse_coff_enum_type),
    	(parse_coff_symbol, parse_coff): Pass types as coff_types**.
    945efa5c
    History
    Tidy type handling in binutils/rdcoff.c
    Alan Modra authored
    There isn't really any good reason for code in rdcoff.c to distinguish
    between "basic" types and any other type.  This patch dispenses with
    the array reserved for basic types and instead handles all types using
    coff_get_slot, simplifying the code.
    
    	* rdcoff.c (struct coff_types, coff_slots): Merge.  Delete
    	coff_slots.
    	(T_MAX): Delete.
    	(parse_coff_base_type): Use coff_get_slot to store baseic types.
    	(coff_get_slot, parse_coff_type, parse_coff_base_type),
    	(parse_coff_struct_type, parse_coff_enum_type),
    	(parse_coff_symbol, parse_coff): Pass types as coff_types**.