summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2016-02-22 23:48:17 +0100
committerpgen <p.gen.progs@gmail.com>2016-02-22 23:51:44 +0100
commit279266e3a443b87c7de8215a81267e9445cc6e51 (patch)
treee30f0f1dc49253a44ae24eb2c7d1a11ad7e85ca0 /smenu.h
parent22ef04110fc3ac3dedb8791d8d21a22aa2a8b08a (diff)
Add a set of structure and functions to manage intervals of integers
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/smenu.h b/smenu.h
index d491f89..8226bfd 100644
--- a/smenu.h
+++ b/smenu.h
@@ -26,6 +26,7 @@ typedef struct word_s word_t;
typedef struct txt_attr_s txt_attr_t;
typedef struct limits_s limits_t;
typedef struct sed_s sed_t;
+typedef struct interval_s interval_t;
void help(win_t * win, term_t * term, int last_line);
void short_usage(void);
@@ -35,6 +36,10 @@ void *xmalloc(size_t size);
void *xcalloc(size_t num, size_t size);
void *xrealloc(void *ptr, size_t size);
+interval_t *interval_new(void);
+int interval_comp(void *a, void *b);
+void interval_swap(void *a, void *b);
+
int ll_append(ll_t * const list, void *const data);
int ll_prepend(ll_t * const list, void *const data);
void ll_insert_before(ll_t * const list, ll_node_t * node, void *const data);