aboutsummaryrefslogtreecommitdiff
path: root/src/libhtml/runetab.h
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-04-06 19:06:52 +0000
committerwkj <devnull@localhost>2004-04-06 19:06:52 +0000
commit7cf289ca89a7416999ae02330236042b0d37e3db (patch)
tree796d1363a7a53c72c28b199758ee674f1326a510 /src/libhtml/runetab.h
parent3e3817f7c86658f60715dd93768eaf8285807985 (diff)
downloadplan9port-7cf289ca89a7416999ae02330236042b0d37e3db.tar.gz
plan9port-7cf289ca89a7416999ae02330236042b0d37e3db.tar.bz2
plan9port-7cf289ca89a7416999ae02330236042b0d37e3db.zip
Import version of libhtml that might actually work with ANSI C.
Diffstat (limited to 'src/libhtml/runetab.h')
-rw-r--r--src/libhtml/runetab.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/libhtml/runetab.h b/src/libhtml/runetab.h
new file mode 100644
index 00000000..edde98c8
--- /dev/null
+++ b/src/libhtml/runetab.h
@@ -0,0 +1,59 @@
+typedef struct AsciiInt AsciiInt;
+
+struct AsciiInt {
+ char* key;
+ int val;
+};
+
+enum {
+ Ltab2space,
+ Lspace,
+ Lempty,
+ Lhash,
+ Lplus,
+ Lcommaspace,
+ Lminus,
+ Larrow,
+ Lone,
+ Llt,
+ Lgt,
+ Lquestion,
+ Lindex,
+ Lreset,
+ Lsubmit,
+ Lnot0to9,
+ Lisindex,
+ L_blank,
+ Lfr,
+ Lnoname,
+ L_parent,
+ L_self,
+ L_top,
+ Lappl_form,
+ Lcircle,
+ Lcm,
+ Lcontent,
+ Ldisc,
+ Lem,
+ Lin,
+ Ljavascript,
+ Ljscript,
+ Ljscript1,
+ Lmm,
+ Lnone,
+ Lpi,
+ Lpt,
+ Lrefresh,
+ Lselect,
+ Lsquare,
+ Ltextarea,
+};
+
+#define L(x) runeconsttab[(x)]
+
+extern Rune **runeconsttab;
+
+/* XXX: for unix port only */
+Rune **cvtstringtab(char**, int);
+StringInt *cvtstringinttab(AsciiInt*, int);
+void runetabinit(void);