aboutsummaryrefslogtreecommitdiffstats
path: root/agenda_entry.h
diff options
context:
space:
mode:
authorEl-BG-1970 <elouangros@hotmail.com>2023-02-05 11:48:36 +0100
committerEl-BG-1970 <elouangros@hotmail.com>2023-02-05 11:48:36 +0100
commita565247c8e000482a4136a4e0f5bd113102a6d65 (patch)
tree056db839983797dd7795060e58b66a6ca3b3d3a4 /agenda_entry.h
parentc599aaf883472686fa2871ec48905b114c783180 (diff)
downloadorg-to-conky-a565247c8e000482a4136a4e0f5bd113102a6d65.tar.gz
added checks, moved from defines to pragma in header files
Diffstat (limited to 'agenda_entry.h')
-rw-r--r--agenda_entry.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/agenda_entry.h b/agenda_entry.h
index 8f13b2d..ea9ea8a 100644
--- a/agenda_entry.h
+++ b/agenda_entry.h
@@ -1,4 +1,4 @@
-#ifndef __AGENDA_ENTRY_H__
+#pragma once
#include <stdlib.h>
#include <string.h>
#include "date.h"
@@ -8,10 +8,10 @@ typedef struct entry {
//struct entry *children;
//int8_t level;// nesting level of the entry
//char *todo; // TODO keyword
+ Date date; // scheduled or deadline date
char *tag; // tag keyword
char *title; // the actual entry
//char *text; // description (if there is one)
- Date date; // scheduled or deadline date
} entry;
char *next_word(char *str);
@@ -27,6 +27,3 @@ void merge_sort_entry_array(entry *arr, int n);
void sort_entry_array(entry *arr, int n);
void print_entry(entry e);
void destroy_entry(entry e);
-
-#define __AGENDA_ENTRY_H__
-#endif