CWB
Defines | Functions

context_descriptor.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "../cl/corpus.h"
#include "../cl/attributes.h"
#include "../cl/cdaccess.h"
#include "../cl/macros.h"
#include "context_descriptor.h"
#include "output.h"
#include "options.h"

Defines

Functions


Define Documentation

#define RESET_LEFT_CONTEXT
Value:
cd->left_width = 25; \
    cd->left_type = CHAR_CONTEXT; \
    if (cd->left_structure_name) { \
      free(cd->left_structure_name); \
      cd->left_structure_name = NULL; \
    } \
    cd->left_structure = NULL

Referenced by verify_context_descriptor().

#define RESET_RIGHT_CONTEXT
Value:
cd->right_width = 25; \
    cd->right_type = CHAR_CONTEXT; \
    if (cd->right_structure_name) { \
      free(cd->right_structure_name); \
      cd->right_structure_name = NULL; \
    } \
    cd->right_structure = NULL

Referenced by verify_context_descriptor().


Function Documentation

void FreeContextDescriptor ( ContextDescriptor **  cdp)

Referenced by initialize_cl().

int initialize_context_descriptor ( ContextDescriptor cd)
ContextDescriptor* NewContextDescriptor ( )
void PrintAttributes ( FILE *  fd,
char *  header,
AttributeList al,
int  show_if_annot 
)

attribute (selected/unselected) print helper routine

References _Attribute::any, _attrbuf::attribute, cl_struc_values(), line, _attlist::list, _attrbuf::next, and _attrbuf::status.

Referenced by PrintContextDescriptor().

void PrintAttributesSimple ( FILE *  fd,
char *  type,
AttributeList al,
int  show_if_annot 
)

attribute print helper routine (non pretty-printing mode)

References _Attribute::any, _attrbuf::attribute, cl_struc_values(), _attlist::list, and _attrbuf::next.

Referenced by PrintContextDescriptor().

void PrintContextDescriptor ( ContextDescriptor cdp)
int update_context_descriptor ( Corpus corpus,
ContextDescriptor cd 
)
int verify_context_descriptor ( Corpus corpus,
ContextDescriptor cd,
int  remove_illegal_entries 
)