diff options
| author | wkj <devnull@localhost> | 2004-04-21 01:15:41 +0000 |
|---|---|---|
| committer | wkj <devnull@localhost> | 2004-04-21 01:15:41 +0000 |
| commit | a31db67d14c0e50353eac3db342f3c969cabdf76 (patch) | |
| tree | 0cebd9a65bab940355f5be0751f53238366555d7 /src/cmd/tcs/conv.h | |
| parent | ba03b8910dd07511378e6f1007faf0539ed25598 (diff) | |
| download | plan9port-a31db67d14c0e50353eac3db342f3c969cabdf76.tar.gz plan9port-a31db67d14c0e50353eac3db342f3c969cabdf76.zip | |
Add tcs; it compiles in my world, but I haven't tried it in Russ's yet.
Diffstat (limited to 'src/cmd/tcs/conv.h')
| -rw-r--r-- | src/cmd/tcs/conv.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmd/tcs/conv.h b/src/cmd/tcs/conv.h new file mode 100644 index 00000000..b8b75439 --- /dev/null +++ b/src/cmd/tcs/conv.h @@ -0,0 +1,18 @@ +void jis_in(int fd, long *notused, struct convert *out); +void jisjis_in(int fd, long *notused, struct convert *out); +void msjis_in(int fd, long *notused, struct convert *out); +void ujis_in(int fd, long *notused, struct convert *out); +void jisjis_out(Rune *base, int n, long *notused); +void ujis_out(Rune *base, int n, long *notused); +void msjis_out(Rune *base, int n, long *notused); +void big5_in(int fd, long *notused, struct convert *out); +void big5_out(Rune *base, int n, long *notused); +void gb_in(int fd, long *notused, struct convert *out); +void gb_out(Rune *base, int n, long *notused); +void uksc_in(int fd, long *notused, struct convert *out); +void uksc_out(Rune *base, int n, long *notused); + +#define emit(x) *(*r)++ = (x) +#define NRUNE 65536 + +extern long tab[]; /* common table indexed by Runes for reverse mappings */ |
