From ba0333fb910bce10841d4c67d6cf3ce028558df8 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 14 Aug 2017 00:15:02 +0200 Subject: Usefull comments --- basic_curses.c | 10 ++++++++++ item.c | 9 +++++++++ main.c | 4 ++++ readline.c | 5 ++++- regex.c | 2 ++ wind.c | 5 +++++ 6 files changed, 34 insertions(+), 1 deletion(-) diff --git a/basic_curses.c b/basic_curses.c index 51bef2b..1a48b8d 100644 --- a/basic_curses.c +++ b/basic_curses.c @@ -1,5 +1,15 @@ +/* + * Ache - 2017-08-14 - GPLv3 + */ + #include "basic_curses.h" +/* + * Set of functions to easy print on the ncurse interface + */ + + + void printfc(char* fstrc, int max_length, ...) { int i = 0; int nbC = 0; diff --git a/item.c b/item.c index b7dc18e..9cf83ba 100644 --- a/item.c +++ b/item.c @@ -1,5 +1,14 @@ +/* + * Ache - 2017-08-14 - GPLv3 + */ + #include "item.h" +/* + * Set of functions to manage a list of items (One file or directory is + * an item). + */ + int sort_i(const void* A, const void* B) { diff --git a/main.c b/main.c index 7315c62..a6f20c8 100755 --- a/main.c +++ b/main.c @@ -11,6 +11,10 @@ #include "item.h" #include "wind.h" +/* + * Entry point of metag and event loop + */ + #ifdef DEBUG diff --git a/readline.c b/readline.c index 176657d..523d7d7 100644 --- a/readline.c +++ b/readline.c @@ -1,7 +1,10 @@ - #include "readline.h" +/* + * Sets of functions to read a line with readline library and ncurses together + */ + static bool input_avail = false; static unsigned char input; diff --git a/regex.c b/regex.c index a96fe5e..726b3a1 100644 --- a/regex.c +++ b/regex.c @@ -1,5 +1,7 @@ #include "regex.h" +/* Manage regex */ + #define MAX_ERROR_MSG 0x1000 diff --git a/wind.c b/wind.c index a09fdce..a587dce 100644 --- a/wind.c +++ b/wind.c @@ -1,6 +1,11 @@ +/* + * Ache - 2017-08-14 - GPLv3 + */ #include "wind.h" +/* Managed windows */ + static short my_fg = COLOR_WHITE; -- cgit v1.2.3