listdic.c File Reference


Detailed Description

Program used to list a dictionary.

Author:
Antoine Fraboulet
Date:
1999

Definition in file listdic.c.

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "dic_internals.h"
#include "dic.h"

Go to the source code of this file.

Functions

static void print_dic_rec (FILE *out, Dictionary dic, char *buf, char *s, Dawg_edge i)
void dic_load (Dictionary *dic, char *filename)
void print_dic_list (char *filename, char *out)
char b2h (int i)
char * hexb (unsigned char h)
char * hexl (unsigned int h)
char * offset (void *base, void *off)
void print_header (char *filename)
void print_node_hex (int i, Dictionary dic)
void print_dic_hex (char *filename)
void usage (char *name)
int main (int argc, char *argv[])


Function Documentation

char b2h int  i  ) 
 

Definition at line 95 of file listdic.c.

Referenced by hexb(), and hexl().

void dic_load Dictionary dic,
char *  filename
 

Definition at line 54 of file listdic.c.

References Dic_load().

Referenced by print_dic_hex(), and print_dic_list().

char* hexb unsigned char  h  ) 
 

Definition at line 103 of file listdic.c.

References b2h().

Referenced by offset(), and print_header().

char* hexl unsigned int  h  ) 
 

Definition at line 113 of file listdic.c.

References b2h().

Referenced by print_header(), and print_node_hex().

int main int  argc,
char *  argv[]
 

Definition at line 199 of file listdic.c.

References usage().

char* offset void *  base,
void *  off
 

Definition at line 128 of file listdic.c.

References hexb().

Referenced by print_header(), and print_node_hex().

void print_dic_hex char *  filename  ) 
 

Definition at line 174 of file listdic.c.

References Dic_destroy(), dic_load(), _Dictionary::nedges, and print_node_hex().

void print_dic_list char *  filename,
char *  out
 

Definition at line 72 of file listdic.c.

References _Dictionary::dawg, Dic_destroy(), dic_load(), print_dic_rec(), and _Dictionary::root.

static void print_dic_rec FILE *  out,
Dictionary  dic,
char *  buf,
char *  s,
Dawg_edge  i
[static]
 

Definition at line 35 of file listdic.c.

References _Dawg_edge::chr, _Dictionary::dawg, _Dawg_edge::ptr, and _Dawg_edge::term.

Referenced by print_dic_list().

void print_header char *  filename  ) 
 

Definition at line 137 of file listdic.c.

References _Dict_header::edgessaved, _Dict_header::edgesused, hexb(), hexl(), _Dict_header::ident, _Dict_header::nodessaved, _Dict_header::nodesused, _Dict_header::nwords, offset(), _Dict_header::root, _Dict_header::unused_1, and _Dict_header::unused_2.

void print_node_hex int  i,
Dictionary  dic
 

Definition at line 163 of file listdic.c.

References _Dawg_edge::chr, _Dictionary::dawg, _Dawg_edge::fill, hexl(), _Dawg_edge::last, offset(), _Dawg_edge::ptr, and _Dawg_edge::term.

Referenced by print_dic_hex().

void usage char *  name  ) 
 

Definition at line 188 of file listdic.c.

Referenced by main().


Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5