diff PrivateHash.h @ 31:1d42a512f482

Renamed VMS to PR, in new branch
author Sean Halle <seanhalle@yahoo.com>
date Fri, 08 Mar 2013 05:44:24 -0800
parents 18ec64d06e35
children 097d8ccb18b7
line diff
     1.1 --- a/PrivateHash.h	Mon Sep 03 15:09:05 2012 -0700
     1.2 +++ b/PrivateHash.h	Fri Mar 08 05:44:24 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - *  Copyright 2009 OpenSourceStewardshipFoundation.org
     1.6 + *  Copyright 2009 OpenSourceResearchInstitute.org
     1.7   *  Licensed under GNU General Public License version 2
     1.8   *
     1.9   * Author: seanhalle@yahoo.com
    1.10 @@ -27,7 +27,7 @@
    1.11  //=====================  structs  =====================
    1.12  union hashkey_t{
    1.13      char hashable[8];
    1.14 -    int  parts[2];
    1.15 +    int32 parts[2];
    1.16  };
    1.17  
    1.18  typedef union hashkey_t hashkey_t;
    1.19 @@ -44,8 +44,8 @@
    1.20  typedef void (*FreeEntryContentFnPtr)    ( void * );
    1.21  
    1.22  typedef struct
    1.23 - { int         tableSz;
    1.24 -   int         numEntries;
    1.25 + { int32       tableSz;
    1.26 +   int32       numEntries;
    1.27     HashEntry* *entries;
    1.28     int32       hashMask;
    1.29     int32       prevHash;
    1.30 @@ -58,8 +58,8 @@
    1.31  //   Public functions
    1.32  HashTable   *makeHashTable( int numHashSlots, FreeEntryContentFnPtr freeFn );
    1.33  
    1.34 -int          putEntryIntoTable( HashEntry *entry, HashTable *table);
    1.35 -int          addValueIntoTable( char* key, void *value, HashTable *table);
    1.36 +int32        putEntryIntoTable( HashEntry *entry, HashTable *table);
    1.37 +int32        addValueIntoTable( char* key, void *value, HashTable *table);
    1.38  HashEntry   *getEntryFromTable( char *key, HashTable *table );
    1.39  void        *getValueFromTable( char *key, HashTable *table );
    1.40  
    1.41 @@ -74,7 +74,7 @@
    1.42  HashTable *makeHashTable32(int32 powerOf2OfSz, FreeEntryContentFnPtr freeFn);
    1.43  HashTable *makeDefaultSizeHashTable32( FreeEntryContentFnPtr freeFn );
    1.44  
    1.45 -int        putEntryIntoTable32( HashEntry *entry, HashTable *table);
    1.46 +int32      putEntryIntoTable32( HashEntry *entry, HashTable *table);
    1.47  HashEntry *addValueIntoTable32( uint32 key[], void *value, HashTable *table);
    1.48  HashEntry *getEntryFromTable32( uint32 key[], HashTable *table );
    1.49  void      *getValueFromTable32( uint32 key[], HashTable *table );