Skip to content

Commit

Permalink
Move shl_misc.h into libtsm_int.h
Browse files Browse the repository at this point in the history
Add a single internal header for all our shared but private code. Remove
now unused shl_misc.h.

Signed-off-by: David Herrmann <[email protected]>
  • Loading branch information
David Herrmann committed Oct 23, 2013
1 parent c269320 commit ff78dc6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ libshl_la_SOURCES = \
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)
Expand All @@ -119,6 +118,7 @@ pkgconfig_DATA += docs/libtsm.pc

libtsm_la_SOURCES = \
src/libtsm.h \
src/libtsm_int.h \
src/tsm_unicode.h \
src/tsm_unicode.c \
src/tsm_screen.h \
Expand Down
14 changes: 4 additions & 10 deletions src/shl_misc.h → src/libtsm_int.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* shl - Miscellaneous small helpers
* TSM - Main internal header
*
* Copyright (c) 2011-2013 David Herrmann <[email protected]>
*
Expand All @@ -23,17 +23,11 @@
* 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 */
2 changes: 1 addition & 1 deletion src/tsm_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
#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"

Expand Down
2 changes: 1 addition & 1 deletion src/tsm_unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
#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
Expand Down
2 changes: 1 addition & 1 deletion src/tsm_vte.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
#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>
Expand Down
2 changes: 1 addition & 1 deletion src/tsm_vte_charsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#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
Expand Down

0 comments on commit ff78dc6

Please sign in to comment.