コード例 #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;
}