summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-09-29 18:32:16 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-01 19:36:56 +0200
commitfeac7702627f023d0b6c9e0f47b1aabe05d6e24d (patch)
treef3eaca50a48f7b9d066004ac14aa691095237d70
parent3930b25dc966b0dcd5a9cec9910ea473b4d4f146 (diff)
Add comments and remove spurious ones.
-rw-r--r--smenu.c14
-rw-r--r--smenu.h1
2 files changed, 4 insertions, 11 deletions
diff --git a/smenu.c b/smenu.c
index 7220208..7455e9e 100644
--- a/smenu.c
+++ b/smenu.c
@@ -417,17 +417,6 @@ help(win_t * win, term_t * term, long last_line, toggle_t * toggle)
tputs(TPARM1(restore_cursor), 1, outch);
}
-/* *************************** */
-/* Memory allocation functions */
-/* *************************** */
-
-/* Created by Kevin Locke (from numerous canonical examples) */
-/* */
-/* I hereby place this file in the public domain. It may be freely */
-/* reproduced, distributed, used, modified, built upon, or otherwise */
-/* employed by anyone for any purpose without restriction. */
-/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" */
-
/* ********************************** */
/* Attributes string parsing function */
/* ********************************** */
@@ -996,6 +985,9 @@ sub_tst_new(void)
return elem;
}
+/* ======================================== */
+/* Emit a small (visual) beep warn the user */
+/* ======================================== */
void
beep(toggle_t * toggle)
{
diff --git a/smenu.h b/smenu.h
index 1af7074..86915e5 100644
--- a/smenu.h
+++ b/smenu.h
@@ -10,6 +10,7 @@
#define TPARM3(p, q, r, ...) tparm(p, q, r, 0, 0, 0, 0, 0, 0, 0)
#define _XOPEN_SOURCE 700
+
/* Used for timers management */
/* """""""""""""""""""""""""" */
#define SECOND 1000000