changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > ventivac / changeset: remove dflag from vac library interface. doesn't belong there anymore.

changeset 122: 84abb5444a76
parent 121: 7fd24f62e50a
child 123: d1f69ce075ec
author: Mechiel Lukkien <mechiel@ueber.net>
date: Fri, 17 Aug 2007 22:28:53 +0200
files: appl/cmd/vacfs.b appl/cmd/vacget.b appl/cmd/vacput.b appl/cmd/venti/copy.b appl/cmd/venti/get.b appl/cmd/venti/put.b appl/cmd/ventry.b appl/lib/vac.b module/vac.m
description: remove dflag from vac library interface. doesn't belong there anymore.
     1.1--- a/appl/cmd/vacfs.b	Fri Aug 17 22:25:28 2007 +0200
     1.2+++ b/appl/cmd/vacfs.b	Fri Aug 17 22:28:53 2007 +0200
     1.3@@ -94,7 +94,6 @@
     1.4 		'D' =>	styxservers->traceset(1);
     1.5 		'a' =>	addr = arg->earg();
     1.6 		'd' =>	dflag++;
     1.7-			vac->dflag++;
     1.8 		'p' =>	pflag++;
     1.9 		* =>	arg->usage();
    1.10 		}
     2.1--- a/appl/cmd/vacget.b	Fri Aug 17 22:25:28 2007 +0200
     2.2+++ b/appl/cmd/vacget.b	Fri Aug 17 22:28:53 2007 +0200
     2.3@@ -45,7 +45,6 @@
     2.4 		case c {
     2.5 		'a' =>	addr = arg->earg();
     2.6 		'D' =>	Dflag++;
     2.7-			vac->dflag++;
     2.8 		'p' =>	pflag++;
     2.9 		't' =>	tflag++;
    2.10 		'v' =>	vflag++;
     3.1--- a/appl/cmd/vacput.b	Fri Aug 17 22:25:28 2007 +0200
     3.2+++ b/appl/cmd/vacput.b	Fri Aug 17 22:28:53 2007 +0200
     3.3@@ -72,7 +72,6 @@
     3.4 			if(err != nil)
     3.5 				error("reading score: "+err);
     3.6 		'D' =>	Dflag++;
     3.7-			vac->dflag++;
     3.8 			rabin->debug++;
     3.9 			vflag++;
    3.10 		'q' =>	qflag++;
     4.1--- a/appl/cmd/venti/copy.b	Fri Aug 17 22:25:28 2007 +0200
     4.2+++ b/appl/cmd/venti/copy.b	Fri Aug 17 22:28:53 2007 +0200
     4.3@@ -44,7 +44,6 @@
     4.4 	while((c := arg->opt()) != 0)
     4.5 		case c {
     4.6 		'd' =>	dflag++;
     4.7-			vac->dflag++;
     4.8 		'f' =>	fflag++;
     4.9 		* =>	arg->usage();
    4.10 		}
     5.1--- a/appl/cmd/venti/get.b	Fri Aug 17 22:25:28 2007 +0200
     5.2+++ b/appl/cmd/venti/get.b	Fri Aug 17 22:28:53 2007 +0200
     5.3@@ -46,7 +46,6 @@
     5.4 		case c {
     5.5 		'a' =>	addr = arg->earg();
     5.6 		'd' =>	dflag++;
     5.7-			vac->dflag++;
     5.8 		* =>	arg->usage();
     5.9 		}
    5.10 	args = arg->argv();
     6.1--- a/appl/cmd/venti/put.b	Fri Aug 17 22:25:28 2007 +0200
     6.2+++ b/appl/cmd/venti/put.b	Fri Aug 17 22:28:53 2007 +0200
     6.3@@ -58,7 +58,6 @@
     6.4 		'b' =>	blocksize = int arg->earg();
     6.5 		'r' =>	rflag++;
     6.6 		'd' =>	dflag++;
     6.7-			vac->dflag++;
     6.8 		* =>	arg->usage();
     6.9 		}
    6.10 	args = arg->argv();
     7.1--- a/appl/cmd/ventry.b	Fri Aug 17 22:25:28 2007 +0200
     7.2+++ b/appl/cmd/ventry.b	Fri Aug 17 22:28:53 2007 +0200
     7.3@@ -42,7 +42,6 @@
     7.4 		case c {
     7.5 		'a' =>	addr = arg->earg();
     7.6 		'd' =>	dflag++;
     7.7-			vac->dflag++;
     7.8 		'i' =>	index = int arg->earg();
     7.9 		* =>	arg->usage();
    7.10 		}
     8.1--- a/appl/lib/vac.b	Fri Aug 17 22:25:28 2007 +0200
     8.2+++ b/appl/lib/vac.b	Fri Aug 17 22:28:53 2007 +0200
     8.3@@ -13,6 +13,8 @@
     8.4 Roottype, Dirtype, Pointertype0, Datatype: import venti;
     8.5 Score, Session, Scoresize: import venti;
     8.6 
     8.7+debug := 0;
     8.8+
     8.9 # from venti.b
    8.10 BIT8SZ:	con 1;
    8.11 BIT16SZ:        con 2;
    8.12@@ -1256,6 +1258,6 @@
    8.13 
    8.14 say(s: string)
    8.15 {
    8.16-	if(dflag)
    8.17+	if(debug)
    8.18 		fprint(fildes(2), "%s\n", s);
    8.19 }
     9.1--- a/module/vac.m	Fri Aug 17 22:25:28 2007 +0200
     9.2+++ b/module/vac.m	Fri Aug 17 22:28:53 2007 +0200
     9.3@@ -2,7 +2,6 @@
     9.4 	PATH:	con "/dis/lib/vac.dis";
     9.5 	init:	fn();
     9.6 
     9.7-	dflag:	int;
     9.8 	blocksread, blockswritten, bytesread, byteswritten: big;
     9.9 
    9.10 	# taken from venti.m, merge back later