-
Notifications
You must be signed in to change notification settings - Fork 2
/
dataList.h
52 lines (42 loc) · 1.06 KB
/
dataList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// dataList.h
// model
//
// Created by Mac on 13/12/20.
// Copyright © 2020 Mac. All rights reserved.
//
#ifndef dataList_h
#define dataList_h
typedef struct train_data
{
char *file1;
char *file2;
struct node * file1_node;
struct node * file2_node;
int match_flag;
int validation_predict;
} train_data;
typedef struct lnode_data
{
struct lnode_data *next;
train_data *data;
} lnode_data;
typedef struct list_data
{
lnode_data *start;
lnode_data *end;
int size;
} list_data;
extern list_data *data;
extern list_data *test;
extern list_data *validation;
extern list_data * validation_to_train;
extern list * allfiles;
extern int conflicts;
list_data *new_list_data(void);
lnode_data *new_lnode_data(train_data *data);
void insert_lnode_data(list_data *list_data, lnode_data *lnodedata);
train_data *new_train_data(char *str1, char *str2, int match_val);
void delete_dataList(list_data *data);
void delete_dataList_val(list_data *dataList);
#endif /* dataList_h */