projects
/
my-code
/
blackbook.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
some data structures by now
[my-code/blackbook.git]
/
blackbook.h
1
/*
2
* blackbook header file
3
*
4
* author: hackbard@hackdaworld.org
5
*
6
*/
7
8
#define MAX_CHARS 64;
9
10
typedef struct s_category {
11
char name[MAX_CHARS];
12
} t_category;
13
14
typedef struct s_transfer {
15
/* date */
16
int year;
17
int month;
18
int day;
19
t_category category;
20
unsigned char sign;
21
float value;
22
} t_transfer;
23
24
typedef struct s_account {
25
char name[MAX_CHARS];
26
int amount_categories;
27
t_category *category;
28
int amount_transfers;
29
t_transfer *transfer;
30
} t_account;
31
32
typedef struct s_bb {
33
int outfd;
34
t_account account;
35
t_display display;
36
t_event event;
37
t_input input;
38
} t_bb;
39