/* Determines whether the specified file name is considered to be a header * file for the purposes of determining whether enclosed tags are global or * static. */ extern boolean isIncludeFile (const char *const fileName) { boolean result = FALSE; const char *const extension = fileExtension (fileName); if (Option.headerExt != NULL) result = stringListExtensionMatched (Option.headerExt, extension); return result; }
static langType getExtensionLanguage (const char *const extension) { langType result = LANG_IGNORE; unsigned int i; for (i = 0 ; i < LanguageCount && result == LANG_IGNORE ; ++i) { stringList* const exts = LanguageTable [i]->currentExtensions; if (exts != NULL && stringListExtensionMatched (exts, extension)) result = i; } return result; }