/* * Translate one set of flags to another, based on the entries in * the given table. If 'leftover' is specified, it is filled in * with any flags which could not be translated. */