Skip to content

Commit f62b0c1

Browse files
author
Matt McFarland
committed
updated some stuff in hashmap.h
1 parent b677558 commit f62b0c1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ TestHashMap
66

77
# back ups
88
*.gch*
9+
10+
# misc files
11+
..
12+

src/hashmap.h

+4-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
*
55
* Hashmap.h contains functions for creating and storing
66
* values in a fixed size hashmap where the key is a
7-
* string of arbitrary length and the data object is a
8-
* 32 bit reference (pointer).
7+
* string of arbitrary length and the data object is a data reference
8+
* pointer.
9+
*
910
*/
1011

1112
#ifndef HASHMAP_h
@@ -15,13 +16,8 @@
1516
#define SUCCESS 0
1617
#define FAILURE 1
1718

18-
#ifndef NULL
19-
#define NULL 0x00
20-
#endif
21-
22-
/* is this a better way to utilize space? */
2319
typedef struct HashNode {
24-
int occupied; /* FREE or OCCUPIED */
20+
int occupied;
2521
char * key;
2622
void * data;
2723
unsigned long hash;

0 commit comments

Comments
 (0)