diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 11:20:28 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-01 11:20:28 +0200 |
commit | 815c2ba22ba5d15cdedd39837d4edb4107eb0b32 (patch) | |
tree | 0e99112e36451d449534ed85a99710a43e9e3ff6 /sys/src/cmd/mothra/html.h | |
parent | f62a2efb7add3ec40ca91adc514d5bdb6b0cd721 (diff) |
mothra: support for inline images and <image> tag
Diffstat (limited to 'sys/src/cmd/mothra/html.h')
-rw-r--r-- | sys/src/cmd/mothra/html.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/src/cmd/mothra/html.h b/sys/src/cmd/mothra/html.h index 242f7947e..b32dd0b5c 100644 --- a/sys/src/cmd/mothra/html.h +++ b/sys/src/cmd/mothra/html.h @@ -4,7 +4,7 @@ #define NSTACK 100 /* html grammar is not recursive, so 30 or so should do */ #define NHBUF 8192 /* Input buffer size */ #define NPEEKC 3 /* Maximum lookahead */ -#define NTOKEN 4096 /* Maximum token length */ +#define NTOKEN 65536 /* Maximum token length */ #define NATTR 512 /* Maximum number of attributes of a tag */ typedef struct Pair Pair; typedef struct Tag Tag; @@ -37,9 +37,9 @@ struct Stack{ int strike; /* flag of <strike> */ int width; /* size of image */ int height; - char image[NNAME]; /* arg of <img> */ - char link[NNAME]; /* arg of <a href=...> */ - char name[NNAME]; /* arg of <a name=...> */ + char *image; /* arg of <img> */ + char *link; /* arg of <a href=...> */ + char *name; /* arg of <a name=...> */ }; /* @@ -169,6 +169,7 @@ enum{ Tag_i, Tag_iframe, Tag_img, + Tag_image, Tag_input, Tag_ins, Tag_isindex, |