예제 #1
0
파일: search.c 프로젝트: LukeMeszar/CAS
int
ProcessMailcapFiles(char *path)
{ char *s;

  while(path) {
    s = index(path, PATH_SEPARATOR);
    if (s) *s++ = 0;
    if (ProcessMailcapFile(path)) return 1;
    path = s;
  }
  return 0;
}
예제 #2
0
int HTLoadTypesConfigFile( char *fn, AcceptMedia media )
{
  int result = 0;
  HTList *saved = HTPresentations;
  if ( reverse_mailcap )
    HTPresentations = 0;
  result = ProcessMailcapFile( fn, media );
  if ( reverse_mailcap )
  {
    if ( result == 0 || HTPresentations == 0 )
    {
      HTPresentations = saved;
    }
    HTList_reverse( HTPresentations );
    HTList_appendList( HTPresentations, saved );
    if ( saved )
    {
      free( saved );
      saved = 0;
    }
  }
  return result;
}