![]() |
GNU PROLOG with UTF8 support
|

Data Structures | |
| struct | hash_node |
Macros | |
| #define | HASH_STATIC_SIZE 3 |
| #define | Tbl_Size(t) (((int *)(t))[0]) |
| #define | Elem_Size(t) (((int *)(t))[1]) |
| #define | Nb_Elem(t) (((int *)(t))[2]) |
| #define | Hsh_Table(t) (((HashNode *) (t)) + HASH_STATIC_SIZE) |
| #define | Hash_Function(k, size) ((PlULong) (k) % (size)) |
Typedefs | |
| typedef struct hash_node * | HashNode |
Functions | |
| static HashNode * | Hash_Locate (HashNode *t, int tbl_size, PlLong key) |
| char * | Pl_Hash_Alloc_Table (int tbl_size, int elem_size) |
| char * | Pl_Hash_Realloc_Table (char *tbl, int new_tbl_size) |
| void | Pl_Hash_Free_Table (char *tbl) |
| void | Pl_Hash_Delete_All (char *tbl) |
| char * | Pl_Hash_Insert (char *tbl, char *elem, int replace) |
| char * | Pl_Hash_Find (char *tbl, PlLong key) |
| char * | Pl_Hash_Delete (char *tbl, PlLong key) |
| char * | Pl_Hash_First (char *tbl, HashScan *scan) |
| char * | Pl_Hash_Next (HashScan *scan) |
| int | Pl_Hash_Table_Size (char *tbl) |
| int | Pl_Hash_Nb_Elements (char *tbl) |
| #define Hash_Function | ( | k, | |
| size | |||
| ) | ((PlULong) (k) % (size)) |
| #define HASH_STATIC_SIZE 3 |
| #define Hsh_Table | ( | t | ) | (((HashNode *) (t)) + HASH_STATIC_SIZE) |

| char* Pl_Hash_Alloc_Table | ( | int | tbl_size, |
| int | elem_size | ||
| ) |

| char* Pl_Hash_Delete | ( | char * | tbl, |
| PlLong | key | ||
| ) |


| void Pl_Hash_Delete_All | ( | char * | tbl | ) |

| char* Pl_Hash_Find | ( | char * | tbl, |
| PlLong | key | ||
| ) |


| char* Pl_Hash_First | ( | char * | tbl, |
| HashScan * | scan | ||
| ) |


| void Pl_Hash_Free_Table | ( | char * | tbl | ) |

| char* Pl_Hash_Insert | ( | char * | tbl, |
| char * | elem, | ||
| int | replace | ||
| ) |


| int Pl_Hash_Nb_Elements | ( | char * | tbl | ) |


| char* Pl_Hash_Next | ( | HashScan * | scan | ) |

| char* Pl_Hash_Realloc_Table | ( | char * | tbl, |
| int | new_tbl_size | ||
| ) |


| int Pl_Hash_Table_Size | ( | char * | tbl | ) |

1.8.11