void copy_bitmask(BITMASK to, BITMASK *from)
{
    BITMASK mask;
    BMlist *pBlist;

    for(pBlist = to.int_list;pBlist;pBlist = pBlist->next)//remove all the bits
        remove_bit(&to,pBlist->tar_mask);

    init_bitmask(&mask);
    for(pBlist = from->int_list;pBlist;pBlist = pBlist->next)//add the new ones
        set_bit(&mask,pBlist->tar_mask);
    to = mask;
    return;

}
--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to