Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

keyfilecode.c File Reference

#include <stdio.h>
#include <stddef.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include "keyerr.h"
#include "ht.h"
#include "keydef.h"

Defines

#define size_t   unsigned
#define maxint   32767
#define show_errors   false
#define short_lc   sizeof(short)
#define eq_pntr(p1, p2)   ((p1.block==p2.block) && (p1.segment==p2.segment))
#define null_pntr(p1)   ((p1.segment==max_segments) && (p1.block==0))
#define hash_value(b, limit)   (((b.block) + b.segment) % limit)
#define mark_modified(f, bufix)   f->buffer[bufix].modified = true
#define delete_threshold   1

Functions

int allocate_block ()
boolean allocate_rec ()
void replace_max_key ()
void deallocate_block ()
void deallocate_rec ()
int compress_ix_block ()
void check_ix_block_compression ()
void update_index ()
void index_delete ()
void split_block ()
FILE * file_index ()
int unpack_lc_key ()
int unpack_rec_key ()
int min (int i, int j)
void mvc (t1, sc1, t2, sc2, lc) unsigned char t1[]

Variables

int read_cnt = 0
int write_cnt = 0
level0_pntr null0_ptr = {max_segments,0,0}
level0_pntr dummy_ptr = {0,0,0}
leveln_pntr nulln_ptr = {max_segments,0}
char index_caption [3][10] = {"user \0","free_rec\0","free_lc \0"}
void t2 []
int sc1
int sc2
int lc
int err
int bufix

Define Documentation

#define delete_threshold   1
 

#define eq_pntr p1,
p2       ((p1.block==p2.block) && (p1.segment==p2.segment))
 

#define hash_value b,
limit       (((b.block) + b.segment) % limit)
 

#define mark_modified f,
bufix       f->buffer[bufix].modified = true
 

#define maxint   32767
 

#define null_pntr p1       ((p1.segment==max_segments) && (p1.block==0))
 

#define short_lc   sizeof(short)
 

#define show_errors   false
 

#define size_t   unsigned
 


Function Documentation

int allocate_block   [static]
 

boolean allocate_rec   [static]
 

void check_ix_block_compression   [static]
 

int compress_ix_block   [static]
 

void deallocate_block   [static]
 

void deallocate_rec   [static]
 

FILE* file_index   [static]
 

void index_delete   [static]
 

int min int    i,
int    j
[static]
 

void mvc t1   ,
sc1   ,
t2   ,
sc2   ,
lc   
 

void replace_max_key   [static]
 

void split_block   [static]
 

int unpack_lc_key  
 

int unpack_rec_key  
 

void update_index  
 


Variable Documentation

int bufix
 

struct level0_pntr dummy_ptr = {0,0,0} [static]
 

int err
 

char index_caption[3][10] = {"user \0","free_rec\0","free_lc \0"} [static]
 

int lc
 

struct level0_pntr null0_ptr = {max_segments,0,0} [static]
 

struct leveln_pntr nulln_ptr = {max_segments,0} [static]
 

int read_cnt = 0
 

int sc1
 

int sc2
 

void t2[]
 

int write_cnt = 0
 


Generated on Wed Nov 3 12:59:14 2004 for Lemur Toolkit by doxygen1.2.18