#!/bin/sh # # Written by Dridi Boukelmoune # # This file is in the public domain. # # 4.4. Entry Eviction When Adding New Entries # # Before a new entry is added to the dynamic table, entries are evicted # from the end of the dynamic table until the size of the dynamic table # is less than or equal to (maximum size - new entry size) or until the # table is empty. # # If the size of the new entry is less than or equal to the maximum # size, that entry is added to the table. It is not an error to # attempt to add an entry that is larger than the maximum size; an # attempt to add an entry larger than the maximum size causes the table # to be emptied of all existing entries and results in an empty table. # # A new entry can reference the name of an entry in the dynamic table # that will be evicted when adding this new entry into the dynamic # table. Implementations are cautioned to avoid deleting the # referenced name if the referenced entry is evicted from the dynamic # table prior to inserting the new entry. . "$(dirname "$0")"/common.sh _ ------------------------ _ Insert in an empty table _ ------------------------ mk_hex <