NeXTSTEP source code.
NeXTSTEP source code dump.
Macros | Functions
hostdict.c File Reference
#include "hostdict.h"

Macros

#define free(ptr)   os_free(ptr)
 
#define strcpy(a, b)   os_strcpy(a, b)
 
#define strcmp(a, b)   os_strcmp(a, b)
 
#define strlen(a)   os_strlen(a)
 
#define TIME()   ++timestamp;
 

Functions

int hashHostDict ()
 
void hostDictPurge ()
 
HostDictnewHostDict (int length, int strings, int copy, void(*purge)())
 
void disposeHostDict (HostDict *hostDict)
 
void defHostDict (HostDict *hostDict, char *key, char *value)
 
char * getHostDict (HostDict *hostDict, char *key)
 
void enumerateHostDict (HostDict *hostDict, void(*enumerate)())
 
int hashHostDict (HostDict *hostDict, char *key)
 
void hostDictPurge (HostDict *hostDict)
 

Macro Definition Documentation

◆ free

#define free (   ptr)    os_free(ptr)

◆ strcmp

#define strcmp (   a,
  b 
)    os_strcmp(a, b)

◆ strcpy

#define strcpy (   a,
  b 
)    os_strcpy(a, b)

◆ strlen

#define strlen (   a)    os_strlen(a)

◆ TIME

#define TIME ( )    ++timestamp;

Function Documentation

◆ defHostDict()

void defHostDict ( HostDict hostDict,
char *  key,
char *  value 
)

◆ disposeHostDict()

void disposeHostDict ( HostDict hostDict)

◆ enumerateHostDict()

void enumerateHostDict ( HostDict hostDict,
void (*)()  enumerate 
)

◆ getHostDict()

char* getHostDict ( HostDict hostDict,
char *  key 
)

◆ hashHostDict() [1/2]

int hashHostDict ( )

◆ hashHostDict() [2/2]

int hashHostDict ( HostDict hostDict,
char *  key 
)

◆ hostDictPurge() [1/2]

void hostDictPurge ( )

◆ hostDictPurge() [2/2]

void hostDictPurge ( HostDict hostDict)

◆ newHostDict()

HostDict* newHostDict ( int  length,
int  strings,
int  copy,
void (*)()  purge 
)