Add a single internal header for all our shared but private code. Remove
now unused shl_misc.h.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/shl_hashtable.h \
external/htable.h \
external/htable.c \
- src/shl_llog.h \
- src/shl_misc.h
+ src/shl_llog.h
libshl_la_CPPFLAGS = $(AM_CPPFLAGS)
libshl_la_LDFLAGS = $(AM_LDFLAGS)
libshl_la_LIBADD = $(AM_LIBADD)
libtsm_la_SOURCES = \
src/libtsm.h \
+ src/libtsm_int.h \
src/tsm_unicode.h \
src/tsm_unicode.c \
src/tsm_screen.h \
/*
- * shl - Miscellaneous small helpers
+ * TSM - Main internal header
*
* Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com>
*
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/*
- * Miscellaneous helpers
- */
-
-#ifndef SHL_MISC_H
-#define SHL_MISC_H
+#ifndef TSM_LIBTSM_INT_H
+#define TSM_LIBTSM_INT_H
-#include <errno.h>
-#include <limits.h>
#include <stdlib.h>
#define SHL_EXPORT __attribute__((visibility("default")))
-#endif /* SHL_MISC_H */
+#endif /* TSM_LIBTSM_INT_H */
#include <stdlib.h>
#include <string.h>
#include "libtsm.h"
+#include "libtsm_int.h"
#include "shl_llog.h"
-#include "shl_misc.h"
#define LLOG_SUBSYSTEM "tsm_screen"
#include <string.h>
#include "external/wcwidth.h"
#include "libtsm.h"
+#include "libtsm_int.h"
#include "shl_array.h"
#include "shl_hashtable.h"
-#include "shl_misc.h"
/*
* Unicode Symbol Handling
#include <stdlib.h>
#include <string.h>
#include "libtsm.h"
+#include "libtsm_int.h"
#include "shl_llog.h"
-#include "shl_misc.h"
#ifdef BUILD_HAVE_XKBCOMMON
# include <xkbcommon/xkbcommon-keysyms.h>
#include <stdlib.h>
#include <string.h>
#include "libtsm.h"
-#include "shl_misc.h"
+#include "libtsm_int.h"
/*
* Lower Unicode character set. This maps the characters to the basic ASCII