if (This && This->type && !isExist(typelist, This->type)) { MimeTypeElement *ele; if ((ele = (MimeTypeElement *) NPN_MemAlloc(sizeof(MimeTypeElement)))) { ele->pinst = This; ele->next = *typelist; *typelist = ele; return(TRUE); } } return(FALSE);
MimeTypeElement *ele;  if (!typelist) return(FALSE);  if (isExist(typelist, type)) return(FALSE);  ele = (MimeTypeElement *) NPN_MemAlloc(sizeof(MimeTypeElement)); ele->value = dupMimeType(type); ele->next = *typelist; *typelist = ele; return(TRUE);
addToList(MimeTypeElement **typelist, PluginInstance *This){    if (This && This->type && !isExist(typelist, This->type))    {        MimeTypeElement *ele;        if ((ele = (MimeTypeElement *) NPN_MemAlloc(sizeof(MimeTypeElement))))        {            ele->pinst = This;            ele->next = *typelist;            *typelist = ele;            return(TRUE);        }    }    return(FALSE);}