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 char home[512]; /* where to put files */
69 int chrwidth; /* nominal width of characters in font */
70 Panel *text; /* Panel displaying the current www page */
71 int debug; /* command line flag */
82 void plrdhtml(char *, int, Www *);
83 void plrdplain(char *, int, Www *);
84 void htmlerror(char *, int, char *, ...); /* user-supplied routine */
85 void seturl(Url *, char *, char *);
87 void getpix(Rtext *, Www *);
88 ulong countpix(void *p);
89 void freepix(void *p);
90 int pipeline(char *, int);
93 void nstrcpy(char *to, char *from, int len);
94 void freeform(void *p);
96 #pragma varargck type "U" char*
97 void message(char *, ...);
98 int filetype(int, char *, int);
100 void mkfieldpanel(Rtext *);
101 void geturl(char *, int, int, int);
102 int urlpost(Url*, char*);
103 int urlget(Url*, int);
104 int urlresolve(Url *);