#include "cl.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
#include <unistd.h>
#define MAX_IDENTIFIER_LENGTH 1024 |
this is the length of fixed-size buffers for names and identifiers
#define MAX_LINE_LENGTH 4096 |
this is the length of temporary strings which are allocated with a fixed size .
.. better make it large
Referenced by add_key(), addline(), cl_new_regex(), close_range(), component_full_name(), compute_code_lengths(), declare_range(), declare_wattr(), decode_check_huff(), do_undump(), find_corpus_registry(), get_input_line(), get_position_values(), get_print_attribute_values(), html_convert_string(), latex_convert_string(), lisp_string(), load_corpusnames(), main(), open_range(), process_fd(), sgml_convert_string(), update_grain_buffer(), and xml_string().
#define REGISTRY_DEFAULT_PATH "/corpora/c1/registry" |
The default path assumed for the location of the corpus registry.
Referenced by central_corpus_directory().
#define REGISTRY_ENVVAR "CORPUS_REGISTRY" |
The Unix environment variable from which the value of the registry will be taken.
Referenced by central_corpus_directory().
#define TODO |
{(void)fprintf(stderr,"TODO point reached: file \"%s\", line %d\n", \
__FILE__, \
__LINE__); \
exit(1);}
Macro which exits the program when a "to do" point is hit.
int cl_debug |
global configuration variable: debug level.
Controls how many debug messages are printed.
0 = none (default), 1 = some, 2 = heavy
Referenced by cl_lexhash_check_grow(), cl_new_regex(), cl_regopt_analyse(), cl_set_debug_level(), collect_matching_ids(), creat_rev_corpus(), create_component(), and make_jump_table().
size_t cl_memory_limit |
global configuration variable: memory limit.
In megabytes; some functions will try to keep to this limit; 0 or less turns the limit off.
(ensure memory limit > 2GB is correctly converted to byte size or number of ints)
Referenced by cl_set_memory_limit(), and creat_rev_corpus().
int cl_optimize |
global configuration variable: optimisation.
0 = off, 1 = on (untested / expensive optimisations)
Referenced by cl_set_optimize().