Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

python/hash.c File Reference

More...

#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  bucket
struct  filePath
struct  hash_table

Defines

#define CHUNK   1

Functions

struct hash_tablehtNewTable (int size)
void htFreeHashTable (struct hash_table *ht)
void htHashStats (const struct hash_table *t)
unsigned int htHashStrings (const char *s, const char *t)
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

#define CHUNK   1
 

Definition at line 12 of file hash.c.


Function Documentation

void htAddToTable ( struct hash_table * t,
const char * dir,
const char * base )
 

Definition at line 133 of file hash.c.

void htFreeHashTable ( struct hash_table * ht )
 

Definition at line 53 of file hash.c.

void htHashStats ( const struct hash_table * t )
 

Definition at line 71 of file hash.c.

unsigned int htHashStrings ( const char * s,
const char * t ) [static]
 

Definition at line 92 of file hash.c.

Referenced by htAddToTable(), htInTable(), and htRemoveFromTable().

int htInTable ( struct hash_table * t,
const char * dir,
const char * base )
 

Definition at line 122 of file hash.c.

int htIterGetNext ( struct hash_table * t,
htIterator * iter,
const char ** dir,
const char ** base )
 

Definition at line 185 of file hash.c.

void htIterStart ( htIterator * iter )
 

Definition at line 180 of file hash.c.

struct hash_table * htNewTable ( int size )
 

Definition at line 32 of file hash.c.

int htNumEntries ( struct hash_table * t )
 

Definition at line 176 of file hash.c.

void htRemoveFromTable ( struct hash_table * t,
const char * dir,
const char * base )
 

Definition at line 158 of file hash.c.

int in_table_aux ( struct hash_table * t,
int hash,
const char * dir,
const char * base ) [static]
 

Definition at line 105 of file hash.c.

Referenced by htAddToTable(), htInTable(), and htRemoveFromTable().


Generated at Fri Feb 15 10:36:03 2002 for rpm by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001