globals.h File Reference

#include "cl.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
#include <unistd.h>

Defines

Variables


Define Documentation

#define MAX_IDENTIFIER_LENGTH   1024

this is the length of fixed-size buffers for names and identifiers

#define MAX_LINE_LENGTH   4096
#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
Value:
{(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.


Variable Documentation

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().

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().

global configuration variable: optimisation.

0 = off, 1 = on (untested / expensive optimisations)

Referenced by cl_set_optimize().


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