]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/mothra/mothra.h
exec(2): fix prototypes
[plan9front.git] / sys / src / cmd / mothra / mothra.h
index e56b11ea7344bec8c726ffb3a7b152fad343103d..665f7084dfe69196eead81a7a4a09f91eee980ff 100644 (file)
@@ -37,6 +37,7 @@ struct Www{
        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 */
@@ -64,7 +65,6 @@ enum{
 };
 
 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 */
@@ -77,7 +77,6 @@ enum{
        POST,
 };
 
-void update(Www *w);
 void finish(Www *w);
 void plrdhtml(char *, int, Www *);
 void plrdplain(char *, int, Www *);
@@ -87,10 +86,10 @@ Url *selurl(char *);
 void getpix(Rtext *, Www *);
 ulong countpix(void *p);
 void freepix(void *p);
-int pipeline(char *, int);
+void dupfds(int fd, ...);
+int pipeline(int fd, char *fmt, ...);
 void getfonts(void);
 void *emalloc(int);
-void *emallocz(int, int);
 void nstrcpy(char *to, char *from, int len);
 void freeform(void *p);
 int Ufmt(Fmt *f);
@@ -103,5 +102,4 @@ void geturl(char *, int, int, int);
 int urlpost(Url*, char*);
 int urlget(Url*, int);
 int urlresolve(Url *);
-char version[];
 Mouse mouse;