enum{
NWWW=64, /* # of pages we hold in the log */
NXPROC=5, /* # of parallel procs loading the pix */
+ NPIXMB=8, /* megabytes of image data to keep arround */
NNAME=512,
NLINE=256,
NAUTH=128,
char title[NTITLE];
Rtext *text;
int yoffs;
+ int gottitle; /* title got drawn */
int changed; /* reader sets this every time it updates page */
int finished; /* reader sets this when done */
int alldone; /* page will not change further -- used to adjust cursor */
enum{
PLAIN,
HTML,
+
GIF,
JPEG,
PNG,
BMP,
- GUNZIP,
+ ICO,
+
PAGE,
};
};
Image *hrule, *bullet, *linespace;
-char home[512]; /* where to put files */
int chrwidth; /* nominal width of characters in font */
Panel *text; /* Panel displaying the current www page */
int debug; /* command line flag */
POST,
};
+void finish(Www *w);
void plrdhtml(char *, int, Www *);
void plrdplain(char *, int, Www *);
void htmlerror(char *, int, char *, ...); /* user-supplied routine */
void seturl(Url *, char *, char *);
+Url *selurl(char *);
void getpix(Rtext *, Www *);
-int pipeline(char *, int);
-int urlopen(Url *, int, char *);
+ulong countpix(void *p);
+void freepix(void *p);
+void dupfds(int fd, ...);
+int pipeline(int fd, char *fmt, ...);
void getfonts(void);
void *emalloc(int);
-void *emallocz(int, int);
-void setbitmap(Rtext *);
+void nstrcpy(char *to, char *from, int len);
+void freeform(void *p);
+int Ufmt(Fmt *f);
+#pragma varargck type "U" char*
void message(char *, ...);
-int snooptype(int fd);
+int filetype(int, char *, int);
+int snooptype(int);
void mkfieldpanel(Rtext *);
-void geturl(char *, int, char *, int, int);
-char version[];
+void geturl(char *, int, int, int);
+int urlpost(Url*, char*);
+int urlget(Url*, int);
+int urlresolve(Url *);
+Mouse mouse;