/******** Static Function Declarations ********/
static unsigned int GetTableIndex(
- register DtHashTable tab,
- register DtHashKey key,
+ DtHashTable tab,
+ DtHashKey key,
#if NeedWidePrototypes
- register int new) ;
+ int new) ;
#else
- register Boolean new) ;
+ Boolean new) ;
#endif /* NeedWidePrototypes */
static void ExpandHashTable(
- register DtHashTable tab) ;
+ DtHashTable tab) ;
/******** End Static Function Declarations ********/
static unsigned int
GetTableIndex(
- register DtHashTable tab,
- register DtHashKey key,
+ DtHashTable tab,
+ DtHashKey key,
#if NeedWidePrototypes
- register int new)
+ int new)
#else
- register Boolean new)
+ Boolean new)
#endif /* NeedWidePrototypes */
{
- register DtHashEntry *entries = tab->entries;
- register int len, idx, i, rehash = 0;
- register char c;
- register Signature sig = 0;
- register DtHashEntry entry;
+ DtHashEntry *entries = tab->entries;
+ int len, idx, i, rehash = 0;
+ char c;
+ Signature sig = 0;
+ DtHashEntry entry;
String s1, s2;
DtHashKey compKey;
void
_DtRegisterHashEntry(
- register DtHashTable tab,
- register DtHashKey key,
- register DtHashEntry entry )
+ DtHashTable tab,
+ DtHashKey key,
+ DtHashEntry entry )
{
unsigned int idx;
void
_DtUnregisterHashEntry(
- register DtHashTable tab,
- register DtHashEntry entry )
+ DtHashTable tab,
+ DtHashEntry entry )
{
- register int idx, rehash;
- register DtHashEntry *entries = tab->entries;
+ int idx, rehash;
+ DtHashEntry *entries = tab->entries;
DtHashKey key = KEY(tab, entry);
idx = GetTableIndex(tab, key, False);
static void
ExpandHashTable(
- register DtHashTable tab )
+ DtHashTable tab )
{
unsigned int oldmask;
- register DtHashEntry *oldentries, *entries;
- register int oldidx, newidx, rehash, len;
- register DtHashEntry entry;
- register DtHashKey key;
+ DtHashEntry *oldentries, *entries;
+ int oldidx, newidx, rehash, len;
+ DtHashEntry entry;
+ DtHashKey key;
oldmask = tab->mask;
oldentries = tab->entries;
DtHashEntry
_DtEnumerateHashTable(
- register DtHashTable tab,
- register DtHashEnumerateFunc enumFunc,
- register XtPointer clientData )
+ DtHashTable tab,
+ DtHashEnumerateFunc enumFunc,
+ XtPointer clientData )
{
- register unsigned int i;
+ unsigned int i;
for (i = 0; i <= tab->mask; i++)
if (tab->entries[i] &&
DtHashEntry
_DtKeyToHashEntry(
- register DtHashTable tab,
- register DtHashKey key )
+ DtHashTable tab,
+ DtHashKey key )
{
- register int idx, rehash, len;
- register DtHashEntry entry, *entries = tab->entries;
+ int idx, rehash, len;
+ DtHashEntry entry, *entries = tab->entries;
if (!key) return NULL;
idx = GetTableIndex(tab, key, False);
Boolean keyIsString)
#endif /* NeedWidePrototypes */
{
- register DtHashTable tab;
+ DtHashTable tab;
tab = (DtHashTable) XtMalloc(sizeof(struct _DtHashTableRec));
tab->types = hashEntryTypes;
/******** Private Function Declarations for Hash.c ********/
extern void _DtRegisterHashEntry(
- register DtHashTable tab,
- register DtHashKey key,
- register DtHashEntry entry) ;
+ DtHashTable tab,
+ DtHashKey key,
+ DtHashEntry entry) ;
extern void _DtUnregisterHashEntry(
- register DtHashTable tab,
- register DtHashEntry entry) ;
+ DtHashTable tab,
+ DtHashEntry entry) ;
extern DtHashEntry _DtEnumerateHashTable(
- register DtHashTable tab,
- register DtHashEnumerateFunc enumFunc,
- register XtPointer clientData) ;
+ DtHashTable tab,
+ DtHashEnumerateFunc enumFunc,
+ XtPointer clientData) ;
extern DtHashEntry _DtKeyToHashEntry(
- register DtHashTable tab,
- register DtHashKey key) ;
+ DtHashTable tab,
+ DtHashKey key) ;
extern DtHashTable _DtAllocHashTable(
DtHashEntryType *hashEntryTypes,
Cardinal numHashEntryTypes,
static Buffer * _DtAllocBuffer(const char **buff);
static void _DtFreeBuffer(Buffer *b);
static void _DtAppendToBuffer(
- register Buffer *b,
+ Buffer *b,
char *str,
- register int len) ;
+ int len) ;
static void _DtAppendEntryToBuffer(
- register Buffer *buffer,
+ Buffer *buffer,
Entry entry) ;
static Entries * _DtAllocEntries( void) ;
static void _DtFreeEntries( Entries *) ;
static void _DtAddEntry(
- register Entries *e,
+ Entries *e,
Entry entry) ;
static int _DtCompareEntries(
Entry *e1,
Entry *e2) ;
static char * _DtFindFirst(
- register char *string,
- register char dest) ;
+ char *string,
+ char dest) ;
static void _DtGetEntries(
- register Entries *entries,
+ Entries *entries,
Buffer *buff,
int dosort) ;
static void _DtMergeEntries(
static void
_DtAppendToBuffer(
- register Buffer *b,
+ Buffer *b,
char *str,
- register int len )
+ int len )
{
while (b->used + len > b->room) {
b->buff = (char *)realloc(b->buff, 2*b->room*(sizeof(char)));
static void
_DtAddEntry(
- register Entries *e,
+ Entries *e,
Entry entry )
{
- register int n;
+ int n;
for (n = 0; n < e->used; n++)
{
static void
_DtAppendEntryToBuffer(
- register Buffer *buffer,
+ Buffer *buffer,
Entry entry )
{
_DtAppendToBuffer(buffer, entry.tag, strlen(entry.tag));
static char *
_DtFindFirst(
- register char *string,
- register char dest )
+ char *string,
+ char dest )
{
int len;
static void
_DtGetEntries(
- register Entries *entries,
+ Entries *entries,
Buffer *buff,
int dosort )
{
- register char *line, *colon, *temp, *str, *temp2;
+ char *line, *colon, *temp, *str, *temp2;
Entry entry;
- register int length;
+ int length;
int lineno = 0;
str = buff->buff;