From: cuz Date: Sun, 20 Mar 2005 09:00:51 +0000 (+0000) Subject: Added extensions for new loadable modules X-Git-Tag: V2.12.0~428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e55cd6fb3589c34727a85366f640c5e7655ed2e;p=cc65 Added extensions for new loadable modules git-svn-id: svn://svn.cc65.org/cc65/trunk@3411 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/filetype.c b/src/common/filetype.c index 230c9fefd..e74c412b6 100644 --- a/src/common/filetype.c +++ b/src/common/filetype.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2005, Ullrich von Bassewitz */ +/* Römerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -64,10 +64,12 @@ static const FileType TypeTable[] = { { "GRC", FILETYPE_GR }, { "JOY", FILETYPE_O65 }, { "LIB", FILETYPE_LIB }, + { "MOU", FILETYPE_O65 }, { "O", FILETYPE_OBJ }, { "O65", FILETYPE_O65 }, { "OBJ", FILETYPE_OBJ }, { "S", FILETYPE_ASM }, + { "SER", FILETYPE_O65 }, { "TGI", FILETYPE_O65 }, { "a", FILETYPE_LIB }, @@ -78,10 +80,12 @@ static const FileType TypeTable[] = { { "grc", FILETYPE_GR }, { "joy", FILETYPE_O65 }, { "lib", FILETYPE_LIB }, + { "mou", FILETYPE_O65 }, { "o", FILETYPE_OBJ }, { "o65", FILETYPE_O65 }, { "obj", FILETYPE_OBJ }, { "s", FILETYPE_ASM }, + { "ser", FILETYPE_O65 }, { "tgi", FILETYPE_O65 }, }; @@ -116,7 +120,7 @@ FILETYPE GetFileType (const char* Name) /* Do we have an extension? */ if (Ext == 0) { return FILETYPE_UNKNOWN; - } + } /* Search for a table entry */ FT = bsearch (Ext+1, TypeTable, FILETYPE_COUNT, sizeof (FileType), Compare);