changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/upas/fs/dat.h

revision 7405: 82225c0fc1a2
parent 6985: 8c50688cb280
child 7454: a27566709691
     1.1--- a/sys/src/cmd/upas/fs/dat.h
     1.2+++ b/sys/src/cmd/upas/fs/dat.h
     1.3@@ -42,10 +42,16 @@ enum {
     1.4 	Nref		= 10,
     1.5 };
     1.6 
     1.7+typedef struct {
     1.8+	Avl;
     1.9+	uchar	*digest;
    1.10+} Mtree;
    1.11+
    1.12 typedef struct Idx Idx;
    1.13 struct Idx {
    1.14+	Mtree;
    1.15+
    1.16 	char	*str;			/* as read from idx file */
    1.17-	uchar	*digest;
    1.18 	uchar	flags;
    1.19 	uvlong	fileid;
    1.20 	ulong	lines;
    1.21@@ -136,11 +142,6 @@ struct Message {
    1.22 	};
    1.23 };
    1.24 
    1.25-typedef struct {
    1.26-	Avl;
    1.27-	Message *m;
    1.28-} Mtree;
    1.29-
    1.30 typedef struct Mcache Mcache;
    1.31 struct Mcache {
    1.32 	uvlong	cached;
    1.33@@ -256,10 +257,10 @@ void		rmidx(char*, int);
    1.34 int		vremove(char*);
    1.35 int		rename(char *, char*, int);
    1.36 
    1.37-int		mtreecmp(Avl*, Avl*);
    1.38-int		mtreeisdup(Mailbox *, Message *);
    1.39+void		mtreeinit(Mailbox *);
    1.40+void		mtreefree(Mailbox *);
    1.41 Message*	mtreefind(Mailbox*, uchar*);
    1.42-void		mtreeadd(Mailbox*, Message*);
    1.43+Message*	mtreeadd(Mailbox*, Message*);
    1.44 void		mtreedelete(Mailbox*, Message*);
    1.45 
    1.46 enum {