Sort the object types

This commit is contained in:
Pierre Pronchery 2022-02-07 05:23:51 +01:00
parent 87ab88818c
commit 4b6d661d3e
2 changed files with 9 additions and 9 deletions

View File

@ -132,15 +132,15 @@ const String * sTargetType[TT_COUNT] = { "binary", "command", "library",
"libtool", "object", "plugin", "script", NULL };
const struct ExtensionType _sExtensionType[] =
{
{ "asm", OT_ASM_SOURCE },
{ "s", OT_ASM_SOURCE },
{ "S", OT_ASMPP_SOURCE },
{ "sx", OT_ASMPP_SOURCE },
{ "c", OT_C_SOURCE },
{ "cc", OT_CXX_SOURCE },
{ "cpp", OT_CXX_SOURCE },
{ "cxx", OT_CXX_SOURCE },
{ "c++", OT_CXX_SOURCE },
{ "asm", OT_ASM_SOURCE },
{ "s", OT_ASM_SOURCE },
{ "S", OT_ASMPP_SOURCE },
{ "sx", OT_ASMPP_SOURCE },
{ "java", OT_JAVA_SOURCE },
{ "m", OT_OBJC_SOURCE },
{ "mm", OT_OBJCXX_SOURCE },

View File

@ -96,17 +96,17 @@ extern const String * sTargetType[TT_COUNT];
typedef enum _ObjectType
{
OT_C_SOURCE = 0,
OT_CXX_SOURCE,
OT_UNKNOWN = 0,
OT_ASM_SOURCE,
OT_ASMPP_SOURCE,
OT_C_SOURCE,
OT_CXX_SOURCE,
OT_JAVA_SOURCE,
OT_OBJC_SOURCE,
OT_OBJCXX_SOURCE,
OT_VERILOG_SOURCE,
OT_UNKNOWN
OT_VERILOG_SOURCE
} ObjectType;
# define OT_LAST OT_UNKNOWN
# define OT_LAST OT_VERILOG_SOURCE
# define OT_COUNT (OT_LAST + 1)
struct ExtensionType
{