From 7cf289ca89a7416999ae02330236042b0d37e3db Mon Sep 17 00:00:00 2001 From: wkj Date: Tue, 6 Apr 2004 19:06:52 +0000 Subject: Import version of libhtml that might actually work with ANSI C. --- src/libhtml/runetab.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/libhtml/runetab.h (limited to 'src/libhtml/runetab.h') 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); -- cgit v1.2.3