ref: 41fb4360a4d6ca93f63e9d98c6c12fef463da090
dir: /castor.h/
typedef struct Ctx Ctx; typedef struct Link Link; typedef struct Hist Hist; typedef struct Url Url; typedef struct Response Response; struct Url { char *raw; char *full; char *scheme; char *user; char *pass; char *host; char *port; char *path; char *query; char *fragment; int free; }; typedef struct { char *s1; char *s2; }Str2; struct Response { Url *url; char *mime; char *prompt; int status; int fd; }; struct Ctx { Url *url; Rtext *text; }; struct Hist { Hist *p; Hist *n; Ctx *c; }; #pragma varargck type "U" Url* #pragma varargck type "E" Str2 #pragma varargck type "N" char* #pragma varargck type "]" char* /* util.c */ void *emalloc(int n); char *estrdup(char *s); /* url.c */ int Efmt(Fmt*); int Nfmt(Fmt*); int Mfmt(Fmt*); int Ufmt(Fmt *f); Url *urlparse(Url *from, char *s); int matchurl(Url *u, Url *s); void freeurl(Url *u); char *Upath(Url *u); void gemini_get(Url *u); void texthit(Panel *p, int b, Rtext *t); void message(char *s, ...);