]> git.sur5r.net Git - cc65/blobdiff - src/common/fileid.c
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / common / fileid.c
index 8e0a875a5fb2583b20e5a8f63adbf7da8e0aa441..fe26aff791c840367f0714aac84ca364142a336d 100644 (file)
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-static int Compare (const void* Key, const void* Id)
-/* Compare function for bsearch */
+int CompareFileId (const void* Key, const void* Id)
+/* Compare function used when calling bsearch with a table of FileIds */
 {
     return strcmp (Key, ((const FileId*) Id)->Ext);
 }
@@ -68,11 +68,11 @@ const FileId* GetFileId (const char* Name, const FileId* Table, unsigned Count)
 
     /* Do we have an extension? */
     if (Ext == 0) {
-       return 0;
+        return 0;
     }
 
     /* Search for a table entry and return it */
-    return bsearch (Ext+1, Table, Count, sizeof (FileId), Compare);
+    return bsearch (Ext+1, Table, Count, sizeof (FileId), CompareFileId);
 }