TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
hashtable.h
Go to the documentation of this file.
1/*
2The contents of this file are subject to the Mozilla Public License
3Version 1.0 (the "License"); you may not use this file except in
4compliance with the License. You may obtain a copy of the License at
5http://www.mozilla.org/MPL/
6
7Software distributed under the License is distributed on an "AS IS"
8basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
9License for the specific language governing rights and limitations
10under the License.
11
12The Original Code is expat.
13
14The Initial Developer of the Original Code is James Clark.
15Portions created by James Clark are Copyright (C) 1998
16James Clark. All Rights Reserved.
17
18Contributor(s):
19$Id$
20*/
21
22
23#include <stddef.h>
24
25#ifdef XML_UNICODE
26typedef const wchar_t *KEY;
27#else
28typedef const char *KEY;
29#endif
30
31typedef struct {
33} NAMED;
34
35typedef struct {
37 size_t size;
38 size_t used;
39 size_t usedLim;
41
42NAMED *lookup(HASH_TABLE *table, KEY name, size_t createSize);
45
46typedef struct {
50
void hashTableIterInit(HASH_TABLE_ITER *, const HASH_TABLE *)
NAMED * hashTableIterNext(HASH_TABLE_ITER *)
void hashTableInit(HASH_TABLE *)
NAMED * lookup(HASH_TABLE *table, KEY name, size_t createSize)
const char * KEY
Definition hashtable.h:28
void hashTableDestroy(HASH_TABLE *)
NAMED ** end
Definition hashtable.h:48
NAMED ** v
Definition hashtable.h:36
size_t used
Definition hashtable.h:38
size_t usedLim
Definition hashtable.h:39
size_t size
Definition hashtable.h:37
KEY name
Definition hashtable.h:32