Added date and task_entry structs for code refactor

This commit is contained in:
xavi 2024-09-08 17:21:20 -07:00
parent 76fb74d504
commit 21bdb0bdf4

View File

@ -11,6 +11,21 @@
#define BLOCKED_COL_START 66
#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){
if( rc!=SQLITE_OK ){
fprintf(stderr, "rc = %d\n", rc);