sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
hashtab.h File Reference
#include "standard.h"

Go to the source code of this file.

Classes

struct  hitem
struct  htab

Macros

#define hcount(t)
#define hkey(t)
#define hkeyl(t)
#define hstuff(t)
#define hnext(t)

Typedefs

typedef struct hitem hitem
typedef struct htab htab

Functions

htab * hcreate (int logsize)
void hdestroy (htab *t)
int hfind (htab *t, const char *key, size_t keyl)
int hadd (htab *t, const char *key, size_t keyl, void *stuff)
int hdel (htab *t)
int hfirst (htab *t)
int hnbucket (htab *t)
void hstat ()

Macro Definition Documentation

◆ hcount

#define hcount ( t)
Value:
((t)->count)

Definition at line 110 of file hashtab.h.

◆ hkey

#define hkey ( t)
Value:
((t)->ipos->key)

Definition at line 111 of file hashtab.h.

◆ hkeyl

#define hkeyl ( t)
Value:
((t)->ipos->keyl)

Definition at line 112 of file hashtab.h.

◆ hnext

#define hnext ( t)
Value:
((!(t)->ipos) ? FALSE : \
((t)->ipos=(t)->ipos->next) ? TRUE : hnbucket(t))

Definition at line 186 of file hashtab.h.

◆ hstuff

#define hstuff ( t)
Value:
((t)->ipos->stuff)

Definition at line 113 of file hashtab.h.

Typedef Documentation

◆ hitem

typedef struct hitem hitem

Definition at line 54 of file hashtab.h.

◆ htab

typedef struct htab htab

Definition at line 68 of file hashtab.h.

Function Documentation

◆ hadd()

int hadd ( htab * t,
const char * key,
size_t keyl,
void * stuff )
extern

Definition at line 176 of file hashtab.c.

◆ hcreate()

htab * hcreate ( int logsize)
extern

Definition at line 116 of file hashtab.c.

◆ hdel()

int hdel ( htab * t)
extern

Definition at line 227 of file hashtab.c.

◆ hdestroy()

void hdestroy ( htab * t)
extern

Definition at line 136 of file hashtab.c.

◆ hfind()

int hfind ( htab * t,
const char * key,
size_t keyl )
extern

Definition at line 150 of file hashtab.c.

◆ hfirst()

int hfirst ( htab * t)
extern

Definition at line 256 of file hashtab.c.

◆ hnbucket()

int hnbucket ( htab * t)
extern

Definition at line 270 of file hashtab.c.