Added date and task_entry structs for code refactor
This commit is contained in:
parent
76fb74d504
commit
21bdb0bdf4
15
src/dodo.c
15
src/dodo.c
@ -11,6 +11,21 @@
|
|||||||
#define BLOCKED_COL_START 66
|
#define BLOCKED_COL_START 66
|
||||||
#define FIXED_WIDTH 19
|
#define FIXED_WIDTH 19
|
||||||
|
|
||||||
|
typedef struct{
|
||||||
|
int year;
|
||||||
|
int month;
|
||||||
|
int day;
|
||||||
|
}date;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int task_id;
|
||||||
|
char* title;
|
||||||
|
int active_id;
|
||||||
|
char* status;
|
||||||
|
date creation_date;
|
||||||
|
date due_date;
|
||||||
|
}task_entry;
|
||||||
|
|
||||||
int checksqlerr(int rc, char *errmsg){
|
int checksqlerr(int rc, char *errmsg){
|
||||||
if( rc!=SQLITE_OK ){
|
if( rc!=SQLITE_OK ){
|
||||||
fprintf(stderr, "rc = %d\n", rc);
|
fprintf(stderr, "rc = %d\n", rc);
|
||||||
|
Loading…
Reference in New Issue
Block a user