shl: move dlist to shl_dlist.h
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 15 Sep 2012 17:48:38 +0000 (19:48 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 15 Sep 2012 18:11:00 +0000 (20:11 +0200)
Instead of including dlist in the static library, we now move it to SHL.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
15 files changed:
Makefile.am
src/eloop.c
src/main.c
src/shl_dlist.h [moved from src/static_dlist.h with 98% similarity]
src/static_misc.h
src/terminal.c
src/text.c
src/text_font.c
src/text_font_freetype2.c
src/text_font_pango.c
src/text_gltex.c
src/ui.c
src/uterm_input.c
src/uterm_monitor.c
src/uterm_vt.c

index 85035fb..287288f 100644 (file)
@@ -83,8 +83,8 @@ lib_LTLIBRARIES += \
        libeloop.la
 
 libeloop_la_SOURCES = \
+       src/shl_dlist.h \
        src/static_llog.h \
-       src/static_dlist.h \
        src/static_hook.h \
        src/eloop.h \
        src/eloop.c
@@ -121,6 +121,7 @@ lib_LTLIBRARIES += \
        libuterm.la
 
 libuterm_la_SOURCES = \
+       src/shl_dlist.h \
        src/uterm.h \
        src/uterm_keysyms.h \
        src/uterm_input.h \
@@ -238,6 +239,7 @@ src/text_font_unifont_data.c: $(UNIFONT) genunifont$(EXEEXT)
 #
 
 libkmscon_core_la_SOURCES = \
+       src/shl_dlist.h \
        src/main.h \
        src/conf.c src/conf.h \
        src/ui.c src/ui.h \
@@ -313,7 +315,6 @@ libkmscon_core_la_LIBADD = \
 
 libkmscon_static_la_SOURCES = \
        src/static_llog.h \
-       src/static_dlist.h \
        src/static_hook.h \
        src/static_misc.h \
        src/static_misc.c \
@@ -344,7 +345,9 @@ endif
 # built as part of kmscon.
 #
 
-kmscon_SOURCES = src/main.c
+kmscon_SOURCES = \
+       src/shl_dlist.h \
+       src/main.c
 kmscon_LDADD = \
        libuterm.la \
        libeloop.la \
index cb876ed..3bbfea4 100644 (file)
 #include <time.h>
 #include <unistd.h>
 #include "eloop.h"
-#include "static_dlist.h"
+#include "shl_dlist.h"
 #include "static_hook.h"
 #include "static_llog.h"
 
index e7eabe1..9f4de6d 100644 (file)
@@ -35,6 +35,7 @@
 #include "eloop.h"
 #include "log.h"
 #include "main.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "text.h"
 #include "ui.h"
similarity index 98%
rename from src/static_dlist.h
rename to src/shl_dlist.h
index 226eb01..17ca8b3 100644 (file)
@@ -109,4 +109,4 @@ static inline bool shl_dlist_empty(struct shl_dlist *head)
        for (iter = (head)->next, tmp = iter->next; iter != (head); \
                iter = tmp, tmp = iter->next)
 
-#endif /* SHL_STATIC_DLIST_H */
+#endif /* SHL_DLIST_H */
index 3e3ea84..96d8e7c 100644 (file)
@@ -36,7 +36,6 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <stdlib.h>
-#include "static_dlist.h"
 #include "static_hook.h"
 
 /* ring buffer for arbitrary byte-streams */
index 231827a..c0218c7 100644 (file)
@@ -38,6 +38,7 @@
 #include "log.h"
 #include "main.h"
 #include "pty.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "terminal.h"
 #include "text.h"
index bbdfeab..e831c6e 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "text.h"
 #include "uterm.h"
index ecd4e3c..9d15f59 100644 (file)
@@ -57,6 +57,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "text.h"
 #include "uterm.h"
index 74bd33c..f17775d 100644 (file)
@@ -45,6 +45,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "text.h"
 #include "unicode.h"
index cca2332..134e1bf 100644 (file)
@@ -52,6 +52,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "text.h"
 #include "unicode.h"
index 68f0586..6ec57ad 100644 (file)
@@ -46,6 +46,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_gl.h"
 #include "static_misc.h"
 #include "text.h"
index 81253b4..41c7b2d 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -33,6 +33,7 @@
 #include <string.h>
 #include "eloop.h"
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "terminal.h"
 #include "ui.h"
index 6a111ee..2a55318 100644 (file)
@@ -38,6 +38,7 @@
 #include <unistd.h>
 #include "eloop.h"
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "uterm.h"
 #include "uterm_input.h"
index 6f13851..2176dec 100644 (file)
@@ -38,6 +38,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "uterm.h"
 
index 93a03eb..a0e4a2c 100644 (file)
@@ -42,6 +42,7 @@
 #include <unistd.h>
 #include "eloop.h"
 #include "log.h"
+#include "shl_dlist.h"
 #include "static_misc.h"
 #include "uterm.h"