cwb-s-encode.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include "../cl/globals.h"
#include "../cl/endian.h"
#include "../cl/macros.h"
#include "../cl/cl.h"
#include "../cl/storage.h"
#include "../cl/lexhash.h"

Data Structures

Defines

Typedefs

Enumerations

Functions

Variables


Define Documentation

#define RNG_AVS   "%s/%s.avs"

Referenced by open_range().

#define RNG_AVX   "%s/%s.avx"

Referenced by open_range().

#define RNG_RNG   "%s/%s.rng"

Referenced by open_range().

#define UMASK   0644

Typedef Documentation

typedef struct _SL * SL

Enumeration Type Documentation

anonymous enum
Enumerator:
set_none 
set_any 
set_regular 
set_whitespace 

Function Documentation

char* check_set ( char *  annot  ) 
void close_range ( void   ) 
void declare_range ( char *  name,
char *  directory,
int  store_values 
)
int main ( int  argc,
char **  argv 
)
void open_range ( void   ) 
int parse_line ( char *  line,
int *  start,
int *  end,
char **  annot 
)

References cl_free, and cl_strdup().

Referenced by main().

void parse_options ( int  argc,
char **  argv 
)

Parses program options and sets global variables.

Parameters:
argc argc - passed from main()
argv argv - passed from main()

References add_to_existing, cl_new_corpus, debug, declare_range(), directory, in_memory, Range::name, registry, set_any, set_att, set_syntax_strict, silent, strip_blanks_in_values, text_fd, and usage().

void SL_delete ( SL  item  ) 

References _SL::annot, cl_free, _SL::next, and _SL::prev.

Referenced by SL_insert().

void SL_insert ( int  start,
int  end,
char *  annot 
)
SL SL_insert_after_point ( int  start,
int  end,
char *  annot 
)
SL SL_next ( void   ) 

References _SL::next.

Referenced by main().

void SL_rewind ( void   ) 

Referenced by main().

SL SL_seek ( int  cpos  ) 

References _SL::end, _SL::next, _SL::prev, and _SL::start.

Referenced by SL_insert().

void usage ( void   ) 

References progname.

void write_region_to_disk ( int  start,
int  end,
char *  annot 
)

Variable Documentation

int add_to_existing = 0

Referenced by main(), and parse_options().

Corpus* corpus = NULL
int debug = 0
int in_memory = 0

Referenced by main(), and parse_options().

cl_lexhash LH = NULL
int line = 0
char* progname = NULL
enum { ... } set_att

Referenced by check_set(), main(), and parse_options().

Referenced by check_set(), and parse_options().

int silent = 0
SL SL_Point = NULL

Referenced by parse_options().

SL StructureList = NULL
FILE* text_fd = NULL

Referenced by main(), and parse_options().


Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1