python/hash.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include "hash.h"
Go to the source code of this file.
Data Structures |
struct | filePath |
struct | bucket |
struct | hash_table |
Defines |
#define | CHUNK 1 |
Functions |
struct hash_table * | htNewTable (int size) |
void | htFreeHashTable (struct hash_table *ht) |
void | htHashStats (const struct hash_table *t) |
static unsigned int | htHashStrings (const char *s, const char *t) |
static int | in_table_aux (struct hash_table *t, int hash, const char *dir, const char *base) |
int | htInTable (struct hash_table *t, const char *dir, const char *base) |
void | htAddToTable (struct hash_table *t, const char *dir, const char *base) |
void | htRemoveFromTable (struct hash_table *t, const char *dir, const char *base) |
int | htNumEntries (struct hash_table *t) |
void | htIterStart (htIterator *iter) |
int | htIterGetNext (struct hash_table *t, htIterator *iter, const char **dir, const char **base) |
Detailed Description
Definition in file hash.c.
Define Documentation
Function Documentation
void htAddToTable |
( |
struct hash_table * |
t, |
|
|
const char * |
dir, |
|
|
const char * |
base | |
|
) |
| | |
static unsigned int htHashStrings |
( |
const char * |
s, |
|
|
const char * |
t | |
|
) |
| | [static] |
int htInTable |
( |
struct hash_table * |
t, |
|
|
const char * |
dir, |
|
|
const char * |
base | |
|
) |
| | |
int htIterGetNext |
( |
struct hash_table * |
t, |
|
|
htIterator * |
iter, |
|
|
const char ** |
dir, |
|
|
const char ** |
base | |
|
) |
| | |
void htRemoveFromTable |
( |
struct hash_table * |
t, |
|
|
const char * |
dir, |
|
|
const char * |
base | |
|
) |
| | |
static int in_table_aux |
( |
struct hash_table * |
t, |
|
|
int |
hash, |
|
|
const char * |
dir, |
|
|
const char * |
base | |
|
) |
| | [static] |