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 gottitle; /* title got drawn */
41 int changed; /* reader sets this every time it updates page */
42 int finished; /* reader sets this when done */
43 int alldone; /* page will not change further -- used to adjust cursor */
60 * authentication types
67 Image *hrule, *bullet, *linespace;
68 int chrwidth; /* nominal width of characters in font */
69 Panel *text; /* Panel displaying the current www page */
70 int debug; /* command line flag */
81 void plrdhtml(char *, int, Www *, int);
82 void plrdplain(char *, int, Www *);
83 void htmlerror(char *, int, char *, ...); /* user-supplied routine */
84 void seturl(Url *, char *, char *);
87 void getpix(Rtext *, Www *);
88 ulong countpix(void *p);
89 void freepix(void *p);
90 void dupfds(int fd, ...);
91 int pipeline(int fd, char *fmt, ...);
94 void nstrcpy(char *to, char *from, int len);
95 void freeform(void *p);
97 #pragma varargck type "U" char*
98 void message(char *, ...);
99 int filetype(int, char *, int);
101 void mkfieldpanel(Rtext *);
102 void geturl(char *, int, int, int);
104 int urlpost(Url*, char*);
105 int urlget(Url*, int);
106 int urlresolve(Url *);