diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-14 17:54:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-14 17:54:42 +0000 |
commit | c6f3075846c286cebabf731303d52660dd30afe8 (patch) | |
tree | 7fc3844d639c5d82fd378b30e3461c0fc7f04174 /term.h | |
parent | 121fc3d4eff42f9400d7e165b83c068757148a7b (diff) | |
download | mandoc-c6f3075846c286cebabf731303d52660dd30afe8.tar.gz |
Make character engine (-Tascii, -Tpdf, -Tps) ready for Unicode: make buffer
consist of type "int". This will take more work (especially in encode and
friends), but this is a strong start. This commit also consists of some
harmless lint fixes.
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -103,7 +103,7 @@ struct termp { #define TERMP_ANPREC (1 << 13) /* See termp_an_pre(). */ #define TERMP_KEEP (1 << 14) /* Keep words together. */ #define TERMP_PREKEEP (1 << 15) /* ...starting with the next one. */ - char *buf; /* Output buffer. */ + int *buf; /* Output buffer. */ enum termenc enc; /* Type of encoding. */ struct mchars *symtab; /* Encoded-symbol table. */ enum termfont fontl; /* Last font set. */ @@ -111,12 +111,12 @@ struct termp { int fonti; /* Index of font stack. */ term_margin headf; /* invoked to print head */ term_margin footf; /* invoked to print foot */ - void (*letter)(struct termp *, char); + void (*letter)(struct termp *, int); void (*begin)(struct termp *); void (*end)(struct termp *); void (*endline)(struct termp *); void (*advance)(struct termp *, size_t); - size_t (*width)(const struct termp *, char); + size_t (*width)(const struct termp *, int); double (*hspan)(const struct termp *, const struct roffsu *); const void *argf; /* arg for headf/footf */ |