// // ORD.C - Keep track of ordinals in the current .sbr file // // #include "mbrmake.h" static WORD near cOrdFree; // number of free ords in this block static VA near vaOrdNext; // the next free ord static VA near vaOrdBase; // the first ord in this block static VA near vaOrdRoot; // the first ord block // ordinals may be sparse so they are hashed // // number of hash buckets #define PORD_MAX 512 #define HASH_ORD(ord) ((ord)&511) static VA near rgvaOrd[PORD_MAX]; // array of linked-lists // allocation blocking (ORD_BLOCK objects per alloc) #define ORD_BLOCK 128 VOID FreeOrdList() // free the ordinal alias list // { int i; // clean the hash table for (i=0; i