HOPS
HOPS class reference
fourmer.h
Go to the documentation of this file.
1 /*
2  * $Id: fourmer.h 1342 2016-05-31 14:01:08Z gbc $
3  *
4  * support for fourmer
5  */
6 
7 #include "mk4_data.h"
8 #include "mk4_util.h"
9 
10 #define MAX_LINES 4096 // max lines in an input file
11 #define MAX_CHARS 512 // max chars in a line
12 #define MAX_BUFFER 256 // max lines in a merged section
13 
14 #define IDX_INC 100 // how much to shift indices
15 #define NUM_CH_MAP 2*MAX_CHAN // size of index remapping
16 #define MAX_FPATH 1024 // MAX_PATH?
17 
18 extern int msglev;
19 
20 /*
21  * Generate a new channel id based on the old, whether it is the
22  * A file (or the B file) and whether it is the root or post-root.
23  */
24 extern char *gen_new_chan_id(char *old, int isA, int isroot);
25 
26 /*
27  * Relabel a channel within a line based on whether it is the A or B file.
28  */
29 extern void relabel_chan_def(char *line, int isA);
30 
31 /*
32  * A verbose comparison diagnostic if needed
33  */
34 extern void print_cdata_cmp(char *AName, char *BName,
35  struct mk4_corel *cdataA,
36  struct mk4_corel *cdataB);
37 
38 /*
39  * Append sdataB to sdataC and edit channel names in the process.
40  */
41 extern void append_sdata(struct mk4_sdata *sdataC, struct mk4_sdata *sdataB);
42 
43 /*
44  * Reconciliation of scan name
45  */
46 extern void scan_name_edit(char lineA[][MAX_CHARS], int nA,
47  char lineB[][MAX_CHARS], int nB);
48 
49 /*
50  * eof
51  */
struct mk4_sdata sdataA sdataB * sdataC
Definition: do_record_merge.c:32
char lineA[MAX_LINES][MAX_CHARS]
Definition: fourmer.c:44
char lineB[MAX_LINES][MAX_CHARS]
Definition: fourmer.c:45
void append_sdata(struct mk4_sdata *sdataC, struct mk4_sdata *sdataB)
Definition: append_sdata.c:141
char * gen_new_chan_id(char *old, int isA, int isroot)
Definition: gen_new_chan_id.c:34
#define MAX_CHARS
Definition: fourmer.h:11
void scan_name_edit(char lineA[][MAX_CHARS], int nA, char lineB[][MAX_CHARS], int nB)
Definition: scan_name_edit.c:51
void print_cdata_cmp(char *AName, char *BName, struct mk4_corel *cdataA, struct mk4_corel *cdataB)
Definition: print_cdata_cmp.c:12
void relabel_chan_def(char *line, int isA)
Definition: gen_new_chan_id.c:57
int msglev
Definition: CorAsc2.c:73
Definition: mk4_data.h:71
Definition: mk4_data.h:108