2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/Localization/fhash.h $
17 * Revision 1.2 2002/06/09 04:41:13 relnev
18 * added copyright header
20 * Revision 1.1.1.1 2002/05/03 03:28:12 root
24 * 4 12/01/98 4:46p Dave
25 * Put in targa bitmap support (16 bit).
30 #ifndef _FRED_XSTR_HASH_TABLE_HEADER_FILE
31 #define _FRED_XSTR_HASH_TABLE_HEADER_FILE
33 // -----------------------------------------------------------------------------------------------
38 // -----------------------------------------------------------------------------------------------
42 // initialize the hash table
45 // set the hash table to be active for parsing
46 void fhash_activate();
48 // set the hash table to be inactive for parsing
49 void fhash_deactivate();
51 // if the hash table is active
54 // flush out the hash table, freeing up everything
57 // add a string with the given id# to the has table
58 void fhash_add_str(char *str, int id);
60 // determine if the passed string exists in the table
61 // returns : -2 if the string doesn't exit, or >= -1 as the string id # otherwise
62 int fhash_string_exists(char *str);