changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > ventivac / appl/cmd/venti/parse.b

revision 127: 7f377ffc9ad3
parent 103: c6c061169cb7
child 132: 9f0ab8812c19
     1.1--- a/appl/cmd/venti/parse.b	Mon Aug 20 13:08:21 2007 +0200
     1.2+++ b/appl/cmd/venti/parse.b	Mon Aug 20 13:51:43 2007 +0200
     1.3@@ -13,8 +13,8 @@
     1.4 vac: Vac;
     1.5 
     1.6 fprint, sprint, print, fildes: import sys;
     1.7-Score, Scoresize, Dirtype, Datatype, Pointertype0: import venti;
     1.8-Pointervarmask, Root, Entry, Direntry, Metablock, Metaentry, Entrysize, Metablocksize, Metaentrysize, Entrydir: import vac;
     1.9+Score, Scoresize, Pointervarmask, Root, Entry, Entrysize, Entrydir, Dirtype, Datatype, Pointertype0: import venti;
    1.10+Direntry, Metablock, Metaentry, Metablocksize, Metaentrysize: import vac;
    1.11 
    1.12 Ventiparse: module {
    1.13 	init:	fn(nil: ref Draw->Context, args: list of string);
    1.14@@ -182,7 +182,7 @@
    1.15 	if(e.depth > 0) {
    1.16 		which := "pointers";
    1.17 		dtype := Pointertype0+e.depth-1;
    1.18-		if(e.flags & Vac->Entryvarblocks) {
    1.19+		if(e.flags & Venti->Entryvarblocks) {
    1.20 			which = "rpointers";
    1.21 			dtype |= Pointervarmask;
    1.22 		}
    1.23@@ -242,7 +242,7 @@
    1.24 		if(mb == nil)
    1.25 			error(sprint("unpacking metablock: %r"));
    1.26 		printmetablock(mb, d[i:], 1);
    1.27-		i += Vac->Dsize;
    1.28+		i += Venti->Dsize;
    1.29 	}
    1.30 }
    1.31