vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

devsd.ed (556B)


      1 /^sdaddpart/-1 s/static //
      2 ,s/pp->perm/pp->perm.perm/g
      3 ,s/pp->name/pp->perm.name/g
      4 ,s/pp->user/pp->perm.user/g
      5 ,s/unit->perm/unit->perm.perm/g
      6 ,s/unit->name/unit->perm.name/g
      7 ,s/unit->user/unit->perm.user/g
      8 ,s/pp->SDperm/pp->perm/g
      9 /^sdgen/ s/char\*, Dirtab\*, int,/char *name, Dirtab *dt, int j,/
     10 /^sdinitpart/+2;/^$/d
     11 /sdaddpart/+1;/^	}/-1c
     12 		partition(unit);
     13 .
     14 $a
     15 
     16 SDpart*
     17 sdfindpart(SDunit *unit, char *name)
     18 {
     19 	int i;
     20 
     21 	for(i=0; i<unit->npart; i++) {
     22 		if(strcmp(unit->part[i].perm.name, name) == 0){
     23 			return &unit->part[i];
     24 		}
     25 	}
     26 	return nil;
     27 }
     28 .