From 8a9d3f97956db97b0813a6d24c486371ff14bd80 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 19 Apr 2004 17:09:49 +0000 Subject: Support for \cfg{input-charset}. Input files can now be in ASCII, 8859-*, UTF-8, or a variety of more fun encodings including various multibyte ones. [originally from svn r4095] --- halibut.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'halibut.h') diff --git a/halibut.h b/halibut.h index 9abc13f..9aa2c59 100644 --- a/halibut.h +++ b/halibut.h @@ -6,6 +6,8 @@ #include #include +#include "charset.h" + #ifdef __GNUC__ #define NORETURN __attribute__((__noreturn__)) #else @@ -66,6 +68,10 @@ struct input_Tag { filepos pos; int reportcols; /* report column numbers in errors */ macrostack *stack; /* macro expansions in force */ + int defcharset, charset; /* character sets for input files */ + charset_state csstate; + wchar_t wc[16]; /* wide chars from input conversion */ + int nwc, wcpos; /* size of, and position in, wc[] */ }; /* -- cgit v1.1