diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:49 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-19 17:09:49 +0000 |
| commit | 8a9d3f97956db97b0813a6d24c486371ff14bd80 (patch) | |
| tree | a080b34a57cee86398a0f6a181fe80a0a869eae9 /halibut.h | |
| parent | f42941536c6c16ba8b89dd5f25d8a747e3d5495d (diff) | |
| download | halibut-8a9d3f97956db97b0813a6d24c486371ff14bd80.zip halibut-8a9d3f97956db97b0813a6d24c486371ff14bd80.tar.gz halibut-8a9d3f97956db97b0813a6d24c486371ff14bd80.tar.bz2 halibut-8a9d3f97956db97b0813a6d24c486371ff14bd80.tar.xz | |
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]
Diffstat (limited to 'halibut.h')
| -rw-r--r-- | halibut.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,6 +6,8 @@ #include <time.h> #include <string.h> +#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[] */ }; /* |