2 NWWW=64, /* # of pages we hold in the log */
3 NXPROC=5, /* # of parallel procs loading the pix */
4 NPIXMB=8, /* megabytes of image data to keep arround */
8 NTITLE=81, /* length of title (including nul at end) */
9 NLABEL=50, /* length of option name in forms */
10 NREDIR=10, /* # of redirections we'll tolerate before declaring a loop */
13 typedef struct Action Action;
14 typedef struct Url Url;
15 typedef struct Www Www;
16 typedef struct Field Field;
31 int map; /* is this an image map? */
40 int changed; /* reader sets this every time it updates page */
41 int finished; /* reader sets this when done */
42 int alldone; /* page will not change further -- used to adjust cursor */
61 * authentication types
68 Image *hrule, *bullet, *linespace;
69 char home[512]; /* where to put files */
70 int chrwidth; /* nominal width of characters in font */
71 Panel *text; /* Panel displaying the current www page */
72 int debug; /* command line flag */
84 void plrdhtml(char *, int, Www *);
85 void plrdplain(char *, int, Www *);
86 void htmlerror(char *, int, char *, ...); /* user-supplied routine */
87 void seturl(Url *, char *, char *);
88 void getpix(Rtext *, Www *);
89 ulong countpix(void *p);
90 void freepix(void *p);
91 int pipeline(char *, int);
92 int urlopen(Url *, int, char *);
95 void *emallocz(int, int);
96 void nstrcpy(char *to, char *from, int len);
97 void freeform(void *p);
98 void message(char *, ...);
99 int snooptype(int fd);
100 void mkfieldpanel(Rtext *);
101 void geturl(char *, int, char *, int, int);