FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhash.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) Volition, Inc. 1999. All rights reserved.
3
*
4
* All source code herein is the property of Volition, Inc. You may not sell
5
* or otherwise commercially exploit the source or things you created based on the
6
* source.
7
*
8
*/
9
10
11
12
#ifndef _FRED_XSTR_HASH_TABLE_HEADER_FILE
13
#define _FRED_XSTR_HASH_TABLE_HEADER_FILE
14
15
// -----------------------------------------------------------------------------------------------
16
// HASH DEFINES/VARS
17
//
18
19
20
// -----------------------------------------------------------------------------------------------
21
// HASH FUNCTIONS
22
//
23
24
// initialize the hash table
25
void
fhash_init
();
26
27
// set the hash table to be active for parsing
28
void
fhash_activate
();
29
30
// set the hash table to be inactive for parsing
31
void
fhash_deactivate
();
32
33
// if the hash table is active
34
int
fhash_active
();
35
36
// flush out the hash table, freeing up everything
37
void
fhash_flush
();
38
39
// add a string with the given id# to the hash table
40
void
fhash_add_str
(
const
char
*str,
int
id
);
41
42
// determine if the passed string exists in the table
43
// returns : -2 if the string doesn't exit, or >= -1 as the string id # otherwise
44
int
fhash_string_exists
(
const
char
*str);
45
46
#endif
fhash_string_exists
int fhash_string_exists(const char *str)
Definition:
fhash.cpp:130
fhash_flush
void fhash_flush()
Definition:
fhash.cpp:79
fhash_deactivate
void fhash_deactivate()
Definition:
fhash.cpp:67
fhash_activate
void fhash_activate()
Definition:
fhash.cpp:61
fhash_active
int fhash_active()
Definition:
fhash.cpp:73
fhash_add_str
void fhash_add_str(const char *str, int id)
Definition:
fhash.cpp:107
fhash_init
void fhash_init()
Definition:
fhash.cpp:55
code
localization
fhash.h
Generated on Sun May 1 2016 16:22:43 for FS2_Open by
1.8.10