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 */
59 * authentication types
66 Image *hrule, *bullet, *linespace;
67 char home[512]; /* where to put files */
68 int chrwidth; /* nominal width of characters in font */
69 Panel *text; /* Panel displaying the current www page */
70 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 *emallocz(int, int);
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);
103 int urlpost(Url*, char*);
104 int urlget(Url*, int);
105 int urlresolve(Url *);