IDZEBRA  2.1.3
dcompact.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "dict-p.h"

Go to the source code of this file.


static void dict_copy_page (Dict dict, char *to_p, char *from_p, int *map)
int dict_copy_compact (BFiles bfs, const char *from_name, const char *to_name)
 copies one dictionary to another More...

Function Documentation

int dict_copy_compact ( BFiles  bfs,
const char *  from,
const char *  to 

copies one dictionary to another

bfsblock file handle
fromsource dictionary file
todestination dictionary file

Definition at line 90 of file dcompact.c.

References Dict_struct::dbf, DICT_backptr, dict_bf_newp(), dict_bf_readp(), DICT_bsize, dict_close(), dict_copy_page(), DICT_nodir, dict_open(), DICT_size, DICT_type, Dict_struct::head, Dict_head::last, Dict_head::page_size, and Dict_head::root.

Referenced by inv_compact().

static void dict_copy_page ( Dict  dict,
char *  to_p,
char *  from_p,
int *  map 

Definition at line 32 of file dcompact.c.

References DICT_bsize, DICT_infoffset, DICT_nodir, DICT_size, dict_strlen(), and DICT_type.

Referenced by dict_copy_compact().