mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Move utf8.{h,c} from fe-common/core to core.
This commit is contained in:
parent
2ba4b9d26a
commit
5538578820
@ -44,6 +44,7 @@ libcore_a_SOURCES = \
|
||||
settings.c \
|
||||
signals.c \
|
||||
special-vars.c \
|
||||
utf8.c \
|
||||
write-buffer.c
|
||||
|
||||
structure_headers = \
|
||||
|
@ -22,5 +22,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "utf8.h"
|
||||
#include "module.h"
|
||||
#include "wcwidth.c"
|
||||
|
@ -8,6 +8,9 @@
|
||||
#define is_big5_hi(hi) (0x81 <= (hi) && (hi) <= 0xFE)
|
||||
#define is_big5(hi,lo) (is_big5_hi(hi) && is_big5_lo(lo))
|
||||
|
||||
#include <glib.h>
|
||||
typedef guint32 unichar;
|
||||
|
||||
/* Returns width for character (0-2). */
|
||||
int mk_wcwidth(unichar c);
|
||||
|
@ -24,8 +24,6 @@ libfe_common_core_a_SOURCES = \
|
||||
fe-queries.c \
|
||||
fe-server.c \
|
||||
fe-settings.c \
|
||||
utf8.c \
|
||||
wcwidth.c \
|
||||
formats.c \
|
||||
hilight-text.c \
|
||||
keyboard.c \
|
||||
@ -62,6 +60,3 @@ pkginc_fe_common_core_HEADERS = \
|
||||
window-items.h \
|
||||
windows-layout.h \
|
||||
fe-windows.h
|
||||
|
||||
noinst_HEADERS = \
|
||||
utf8.h
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#define MODULE_NAME "fe-common/core"
|
||||
|
||||
typedef guint32 unichar;
|
||||
#include "utf8.h"
|
||||
typedef struct {
|
||||
time_t time;
|
||||
char *nick;
|
||||
|
@ -27,7 +27,7 @@ typedef struct _TERM_WINDOW TERM_WINDOW;
|
||||
#define TERM_TYPE_UTF8 1
|
||||
#define TERM_TYPE_BIG5 2
|
||||
|
||||
typedef guint32 unichar;
|
||||
#include "utf8.h"
|
||||
|
||||
extern TERM_WINDOW *root_window;
|
||||
extern int term_width, term_height;
|
||||
|
Loading…
Reference in New Issue
Block a user