hashtable_xsb.c File Reference

#include "xsb_config.h"
#include "xsb_debug.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "auxlry.h"
#include "cell_xsb.h"
#include "psc_xsb.h"
#include "cinterf.h"
#include "trie_internals.h"
#include "macro_xsb.h"
#include "error_xsb.h"
#include "tr_utils.h"
#include "debug_xsb.h"
#include "flags_xsb.h"
#include "memory_xsb.h"
#include "heap_xsb.h"

Defines

#define table_hash(val, length)   ((word)(val) % (length))
#define get_top_bucket(htable, I)   ((xsbBucket *)(htable->table + (htable->bucket_size * I)))
#define mark_bucket_free(bucket, size)   memset(bucket,(Cell)0,size)
#define is_free_bucket(bucket)   (bucket->name == (Cell)0)

Functions

static void init_hashtable (xsbHashTable *table)
xsbBucketsearch_bucket (Cell name, xsbHashTable *table, enum xsbHashSearchOp search_op)
void destroy_hashtable (xsbHashTable *table)
void show_table_state (xsbHashTable *table)
void mark_hash_table_strings (CTXTdecl)

Variables

xsbHashTable bt_storage_hash_table

Define Documentation

#define get_top_bucket htable,
 )     ((xsbBucket *)(htable->table + (htable->bucket_size * I)))
 

#define is_free_bucket bucket   )     (bucket->name == (Cell)0)
 

#define mark_bucket_free bucket,
size   )     memset(bucket,(Cell)0,size)
 

#define table_hash val,
length   )     ((word)(val) % (length))
 


Function Documentation

void destroy_hashtable xsbHashTable table  ) 
 

static void init_hashtable xsbHashTable table  )  [static]
 

void mark_hash_table_strings CTXTdecl   ) 
 

xsbBucket* search_bucket Cell  name,
xsbHashTable table,
enum xsbHashSearchOp  search_op
 

void show_table_state xsbHashTable table  ) 
 


Variable Documentation

xsbHashTable bt_storage_hash_table
 


Generated on Wed Jul 26 13:26:53 2006 for XSB by  doxygen 1.4.5