remove avl bits (now in library) from replica. avl.c needs to be removed from the source as well Notes: Tue Jul 13 16:52:37 EDT 2010 geoff This is just cosmetic, and replica's avl code is slightly different from that in libavl (for example, replica uses emalloc). Reference: /n/sources/patch/sorry/replicaavl Date: Mon Apr 5 19:45:46 CES 2010 Signed-off-by: quanstro@quanstro.net Reviewed-by: geoff --- /sys/src/cmd/replica/mkfile Mon Apr 5 19:45:39 2010 +++ /sys/src/cmd/replica/mkfile Mon Apr 5 19:45:37 2010 @@ -15,7 +15,6 @@ $SCRIPTS\ OFILES=\ - avl.$O\ db.$O\ util.$O\ --- /sys/src/cmd/replica/all.h Mon Apr 5 19:45:40 2010 +++ /sys/src/cmd/replica/all.h Mon Apr 5 19:45:39 2010 @@ -2,30 +2,7 @@ #include #include #include - -/* avl.c */ -typedef struct Avl Avl; -typedef struct Avltree Avltree; -typedef struct Avlwalk Avlwalk; - -#pragma incomplete Avltree -#pragma incomplete Avlwalk - -struct Avl -{ - Avl *p; /* parent */ - Avl *n[2]; /* children */ - int bal; /* balance bits */ -}; - -Avltree *mkavltree(int(*cmp)(Avl*, Avl*)); -void insertavl(Avltree *tree, Avl *new, Avl **oldp); -Avl *lookupavl(Avltree *tree, Avl *key); -void deleteavl(Avltree *tree, Avl *key, Avl **oldp); -Avlwalk *avlwalk(Avltree *tree); -Avl *avlnext(Avlwalk *walk); -Avl *avlprev(Avlwalk *walk); -void endwalk(Avlwalk *walk); +#include /* db.c */ typedef struct Db Db; @@ -45,8 +22,6 @@ } d; }; - -typedef struct Db Db; struct Db { Avltree *avl; @@ -67,4 +42,3 @@ /* revproto.c */ int revrdproto(char*, char*, char*, Protoenum*, Protowarn*, void*); -