1 typedef struct Map Map;
2 typedef struct Mapel Mapel;
3 typedef struct Sub Sub;
4 typedef struct Wdoc Wdoc;
5 typedef struct Whist Whist;
6 typedef struct Wpage Wpage;
9 Tcache = 5, /* seconds */
10 Maxmap = 10*1024*1024,
28 int section; /* Wman */
29 char *url; /* Wlink */
80 void *erealloc(void*, ulong);
83 char *estrdupn(char*, int);
84 char *strcondense(char*, int);
85 char *strlower(char*);
87 String *s_appendsub(String*, char*, int, Sub*, int);
88 String *s_appendlist(String*, ...);
89 Whist *Brdwhist(Biobuf*);
90 Wpage *Brdpage(char*(*)(void*,int), void*);
92 void printpage(Wpage*);
93 String *pagehtml(String*, Wpage*, int);
94 String *pagetext(String*, Wpage*, int);
95 String *tohtml(Whist*, Wdoc*, int);
96 String *totext(Whist*, Wdoc*, int);
97 String *doctext(String*, Wdoc*);
99 Whist *getcurrent(int);
100 Whist *getcurrentbyname(char*);
101 Whist *gethistory(int);
102 void closewhist(Whist*);
103 int allocnum(char*, int);
104 void freepage(Wpage*);
105 int nametonum(char*);
106 char *numtoname(int);
107 int writepage(int, ulong, String*, char*);
111 void currentmap(int);
114 extern RWLock maplock;
115 extern char *wikidir;
116 Biobuf *wBopen(char*, int);
117 int wopen(char*, int);
118 int wcreate(char*, int, long);
119 int waccess(char*, int);
120 Dir *wdirstat(char*);