-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtypes.h
More file actions
47 lines (40 loc) · 696 Bytes
/
types.h
File metadata and controls
47 lines (40 loc) · 696 Bytes
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
#ifndef TYPES_H
#define TYPES_H
typedef struct {
double x;
double y;
} point;
typedef struct {
uint8_t row_ceil2;
uint8_t columns;
size_t rows;
point **pairs; // p[col] -> p[row]
} data_set;
typedef enum {
PLOT_ASCII,
PLOT_SVG,
} output_t;
typedef enum {
MODE_DOT,
MODE_COUNT,
MODE_LINE,
} plot_t;
typedef struct {
bool log_x;
bool log_y;
bool log_count;
bool flip_xy;
bool x_column;
plot_t mode;
bool axis;
bool stream_mode;
bool colorblind;
bool regression;
size_t width;
size_t height;
char *in_path;
FILE *in;
output_t plot_type;
struct svg_theme *svg_theme;
} config;
#endif