-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.h
57 lines (44 loc) · 820 Bytes
/
main.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
53
54
55
56
57
#ifndef __MAIN_H__
#define __MAIN_H__
#include "libflat.h"
struct command {
char* cmd;
char** values;
int size;
float**** deep_fp_value;
};
FUNCTION_DECLARE_FLATTEN_STRUCT(command);
#pragma pack()
struct dep {
struct file** f;
int n;
char* fno;
int* arr;
int* pi[4];
int pi_size[4];
};
FUNCTION_DECLARE_FLATTEN_STRUCT(dep);
struct filearr;
struct file {
char* name;
char* value;
int p;
char** stp;
struct command* c;
struct file* next;
struct file* prev;
struct dep* d;
struct filearr* farr;
};
FUNCTION_DECLARE_FLATTEN_STRUCT(file);
struct filearr {
struct file* files;
};
FUNCTION_DECLARE_FLATTEN_STRUCT(filearr);
struct list {
struct list* next;
const char* name;
int value;
};
FUNCTION_DECLARE_FLATTEN_STRUCT(list);
#endif