int dispatchFile(const char *name) { const char *ext; if ( (ext = file_name_extension(name)) ) { extdef *d = extdefs; for( ; d->extension; d++ ) { if ( strfeq(d->extension, ext) ) { if ( d->list == &plfiles ) nostate = FALSE; appendArgList(d->list, name); return TRUE; } } if ( soext && strfeq(soext, ext) ) { if ( d->list == &plfiles ) nostate = FALSE; appendArgList(&libs, name); return TRUE; } } return FALSE; }
int dispatchFile(const char *name) { const char *ext; if ( (ext = file_name_extension(name)) ) { extdef *d = extdefs; for( ; d->extension; d++ ) { if ( strfeq(d->extension, ext) ) { appendArgList(d->list, name); return TRUE; } } } return FALSE; }