Skip to content

Commit

Permalink
updated some stuff in hashmap.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt McFarland committed Oct 31, 2015
1 parent b677558 commit f62b0c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ TestHashMap

# back ups
*.gch*

# misc files
..

12 changes: 4 additions & 8 deletions src/hashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
*
* Hashmap.h contains functions for creating and storing
* values in a fixed size hashmap where the key is a
* string of arbitrary length and the data object is a
* 32 bit reference (pointer).
* string of arbitrary length and the data object is a data reference
* pointer.
*
*/

#ifndef HASHMAP_h
Expand All @@ -15,13 +16,8 @@
#define SUCCESS 0
#define FAILURE 1

#ifndef NULL
#define NULL 0x00
#endif

/* is this a better way to utilize space? */
typedef struct HashNode {
int occupied; /* FREE or OCCUPIED */
int occupied;
char * key;
void * data;
unsigned long hash;
Expand Down

0 comments on commit f62b0c1

Please sign in to comment.