Add upper case extensions, use binary search

git-svn-id: svn://svn.cc65.org/cc65/trunk@2183 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-06-02 11:01:23 +00:00
parent 1e4af7b04e
commit 4525b13eb2
2 changed files with 52 additions and 32 deletions

View File

@@ -45,7 +45,7 @@
/* File types */
enum {
typedef enum {
FILETYPE_UNKNOWN = -1, /* Unknown file type */
FILETYPE_C, /* C source file */
FILETYPE_ASM, /* Assembler file */
@@ -53,7 +53,7 @@ enum {
FILETYPE_LIB, /* Library file */
FILETYPE_GR, /* GEOS resource file */
FILETYPE_O65 /* O65 object file */
};
} FILETYPE;
@@ -63,7 +63,7 @@ enum {
int GetFileType (const char* Name);
FILETYPE GetFileType (const char* Name);
/* Determine the type of the given file by looking at the name. If the file
* type could not be determined, the function returns FILETYPE_UNKOWN.
*/