aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-08-14 00:15:02 +0200
committerache <ache@ache.one>2017-08-14 00:15:02 +0200
commitba0333fb910bce10841d4c67d6cf3ce028558df8 (patch)
tree4a7117698d4982965d2f0d89e9a24dc979c0115e
parentControl with arrows (diff)
Usefull comments
-rw-r--r--basic_curses.c10
-rw-r--r--item.c9
-rwxr-xr-xmain.c4
-rw-r--r--readline.c5
-rw-r--r--regex.c2
-rw-r--r--wind.c5
6 files changed, 34 insertions, 1 deletions
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;