changeset 31:1d42a512f482 Rename_VMS_to_PR

Renamed VMS to PR, in new branch
author Sean Halle <seanhalle@yahoo.com>
date Fri, 08 Mar 2013 05:44:24 -0800
parents 1244508aaae4
children 097d8ccb18b7
files PrivateHash.c PrivateHash.h
diffstat 2 files changed, 11 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/PrivateHash.c	Mon Sep 03 15:09:05 2012 -0700
     1.2 +++ b/PrivateHash.c	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   *
    1.10 @@ -235,6 +235,9 @@
    1.11     return FALSE;
    1.12   }
    1.13   
    1.14 +/*Frees hash table struct, all entry strucs, and even the contents of each
    1.15 + * entry.
    1.16 + */
    1.17  void
    1.18  freeHashTable( HashTable *table )
    1.19   { int i;
     2.1 --- a/PrivateHash.h	Mon Sep 03 15:09:05 2012 -0700
     2.2 +++ b/PrivateHash.h	Fri Mar 08 05:44:24 2013 -0800
     2.3 @@ -1,5 +1,5 @@
     2.4  /*
     2.5 - *  Copyright 2009 OpenSourceStewardshipFoundation.org
     2.6 + *  Copyright 2009 OpenSourceResearchInstitute.org
     2.7   *  Licensed under GNU General Public License version 2
     2.8   *
     2.9   * Author: seanhalle@yahoo.com
    2.10 @@ -27,7 +27,7 @@
    2.11  //=====================  structs  =====================
    2.12  union hashkey_t{
    2.13      char hashable[8];
    2.14 -    int  parts[2];
    2.15 +    int32 parts[2];
    2.16  };
    2.17  
    2.18  typedef union hashkey_t hashkey_t;
    2.19 @@ -44,8 +44,8 @@
    2.20  typedef void (*FreeEntryContentFnPtr)    ( void * );
    2.21  
    2.22  typedef struct
    2.23 - { int         tableSz;
    2.24 -   int         numEntries;
    2.25 + { int32       tableSz;
    2.26 +   int32       numEntries;
    2.27     HashEntry* *entries;
    2.28     int32       hashMask;
    2.29     int32       prevHash;
    2.30 @@ -58,8 +58,8 @@
    2.31  //   Public functions
    2.32  HashTable   *makeHashTable( int numHashSlots, FreeEntryContentFnPtr freeFn );
    2.33  
    2.34 -int          putEntryIntoTable( HashEntry *entry, HashTable *table);
    2.35 -int          addValueIntoTable( char* key, void *value, HashTable *table);
    2.36 +int32        putEntryIntoTable( HashEntry *entry, HashTable *table);
    2.37 +int32        addValueIntoTable( char* key, void *value, HashTable *table);
    2.38  HashEntry   *getEntryFromTable( char *key, HashTable *table );
    2.39  void        *getValueFromTable( char *key, HashTable *table );
    2.40  
    2.41 @@ -74,7 +74,7 @@
    2.42  HashTable *makeHashTable32(int32 powerOf2OfSz, FreeEntryContentFnPtr freeFn);
    2.43  HashTable *makeDefaultSizeHashTable32( FreeEntryContentFnPtr freeFn );
    2.44  
    2.45 -int        putEntryIntoTable32( HashEntry *entry, HashTable *table);
    2.46 +int32      putEntryIntoTable32( HashEntry *entry, HashTable *table);
    2.47  HashEntry *addValueIntoTable32( uint32 key[], void *value, HashTable *table);
    2.48  HashEntry *getEntryFromTable32( uint32 key[], HashTable *table );
    2.49  void      *getValueFromTable32( uint32 key[], HashTable *table );