Import version of libhtml that might actually work with ANSI C.
This commit is contained in:
parent
3e3817f7c8
commit
7cf289ca89
13 changed files with 7206 additions and 0 deletions
59
src/libhtml/runetab.h
Normal file
59
src/libhtml/runetab.h
Normal file
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue