summaryrefslogtreecommitdiffstats
path: root/src/chrtrans/UCkd.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:21:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:21:21 +0000
commit510ed32cfbffa6148018869f5ade416505a450b3 (patch)
tree0aafabcf3dfaab7685fa0fcbaa683dafe287807e /src/chrtrans/UCkd.h
parentInitial commit. (diff)
downloadlynx-510ed32cfbffa6148018869f5ade416505a450b3.tar.xz
lynx-510ed32cfbffa6148018869f5ade416505a450b3.zip
Adding upstream version 2.9.0rel.0.upstream/2.9.0rel.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/chrtrans/UCkd.h')
-rw-r--r--src/chrtrans/UCkd.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/chrtrans/UCkd.h b/src/chrtrans/UCkd.h
new file mode 100644
index 0000000..f2de902
--- /dev/null
+++ b/src/chrtrans/UCkd.h
@@ -0,0 +1,54 @@
+#ifndef _UC_KD_H
+#define _UC_KD_H
+
+/*
+ * NOTE: THE FOLLOWING #define MAY NEED ADJUSTMENT.
+ * u16 should be an unsigned type of 16 bit length (two octets).
+ * u8 should be an unsigned type of 8 bit length (one octet).
+ */
+#ifndef u16
+#define u16 unsigned short
+#endif /* u16 */
+
+#ifndef u8
+#define u8 unsigned char
+#endif /* u8 */
+
+typedef char scrnmap_t;
+
+#define E_TABSZ 256
+
+struct unipair {
+ u16 unicode;
+ u16 fontpos;
+};
+struct unipair_str {
+ u16 unicode;
+ const char *replace_str;
+};
+struct unimapdesc {
+ u16 entry_ct;
+ struct unipair *entries;
+};
+struct unimapdesc_str {
+ u16 entry_ct;
+ struct unipair_str *entries;
+ int isdefault;
+ int trydefault;
+};
+
+#define UNI_DIRECT_BASE 0xF000 /* start of Direct Font Region */
+#define UNI_DIRECT_MASK 0x01FF /* Direct Font Region bitmask */
+
+#define UC_MAXLEN_ID_APPEND 20
+#define UC_MAXLEN_MIMECSNAME 40
+#define UC_MAXLEN_LYNXCSNAME 40
+#define UC_LEN_LYNXCSNAME 20
+
+#undef EX_OK /* may be defined in system headers */
+#define EX_OK 0 /* successful termination */
+#define EX_USAGE 64 /* command line usage error */
+#define EX_DATAERR 65 /* data format error */
+#define EX_NOINPUT 66 /* cannot open input */
+
+#endif /* _UC_KD_H */