Open source remastering of the Freespace 2 engine
fhash.cpp File Reference
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include "globalincs/pstypes.h"
#include "localization/fhash.h"

Go to the source code of this file.


struct  fhash_node


#define HASH_TABLE_SIZE   253


typedef struct fhash_node fhash_node


int fhash_get_hash_index (const char *str)
void fhash_insert (const char *str, int id, int n)
void fhash_init ()
void fhash_activate ()
void fhash_deactivate ()
int fhash_active ()
void fhash_flush ()
void fhash_add_str (const char *str, int id)
int fhash_string_exists (const char *str)


fhash_nodeHash_table_fred [HASH_TABLE_SIZE]
int Fhash_active = 0

Macro Definition Documentation

#define HASH_TABLE_SIZE   253

Definition at line 32 of file fhash.cpp.

Typedef Documentation

typedef struct fhash_node fhash_node

Function Documentation

void fhash_activate ( )

Definition at line 61 of file fhash.cpp.

int fhash_active ( )

Definition at line 73 of file fhash.cpp.

void fhash_add_str ( const char *  str,
int  id 

Definition at line 107 of file fhash.cpp.

void fhash_deactivate ( )

Definition at line 67 of file fhash.cpp.

void fhash_flush ( )

Definition at line 79 of file fhash.cpp.

int fhash_get_hash_index ( const char *  str)

Definition at line 173 of file fhash.cpp.

void fhash_init ( )

Definition at line 55 of file fhash.cpp.

void fhash_insert ( const char *  str,
int  id,
int  n 

Definition at line 190 of file fhash.cpp.

int fhash_string_exists ( const char *  str)

Definition at line 130 of file fhash.cpp.

Variable Documentation

int Fhash_active = 0

Definition at line 36 of file fhash.cpp.

fhash_node* Hash_table_fred[HASH_TABLE_SIZE]

Definition at line 33 of file fhash.cpp.