|
CWB
|
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include "../cl/globals.h"#include "../cl/storage.h"#include "../cl/attributes.h"| int alignencode_parse_args | ( | int | ac, |
| char * | av[], | ||
| int | min_args | ||
| ) |
Parses the program's commandline arguments.
Usage:
optindex = alignencode_parse_args(argc, argv, required_arguments);
| ac | The program's argc |
| av | The program's argv |
| min_args | Minimum number of arguments to be parsed. |
References alignencode_usage(), compatibility, data_dir, data_dir_from_corpus, progname, registry_dir, reverse, and verbose.
Referenced by main().
| void alignencode_usage | ( | void | ) |
Prints a message describing how to use the program to STDERR and then exits.
References progname, and VERSION.
Referenced by alignencode_parse_args().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function for cwb-align-encode.
| argc | Number of command-line arguments. |
| argv | Command-line arguments. |
References af, af_is_pipe, align_name, alignencode_parse_args(), ATT_ALIGN, ATT_POS, cl_free, cl_id_tolower(), cl_malloc(), cl_max_cpos(), CL_MAX_FILENAME_LENGTH, CL_MAX_LINE_LENGTH, cl_new_attribute, cl_new_corpus(), cl_strdup(), CompAlignData, compatibility, component_full_name(), CompXAlignData, corpus1, corpus1_name, corpus2, corpus2_name, data_dir, data_dir_from_corpus, line, NwriteInt(), progname, registry_dir, reverse, s1_name, s2_name, size1, size2, SUBDIR_SEP_STRING, verbose, w1, and w2.
| int compatibility = 0 |
create .alg file for backward compatibility ?
Referenced by alignencode_parse_args(), and main().
| char* data_dir = NULL |
where to store encoded alignment attribute
Referenced by alignencode_parse_args(), and main().
| int data_dir_from_corpus = 0 |
determine data directory from registry entry?
Referenced by alignencode_parse_args(), and main().
| char* progname = "" |
Name of the program (from the shell)
| char* registry_dir = NULL |
CL registry directory.
Referenced by alignencode_parse_args(), alignshow_parse_args(), and main().
| int reverse = 0 |
encode inverse alignment?
Referenced by alignencode_parse_args(), main(), and srt_strcmp().
| int verbose = 0 |
print some information about what files are created
Referenced by align_do_alignment(), align_parse_args(), alignencode_parse_args(), cwbci_parse_options(), encode_parse_options(), and main().
1.7.3