R=rsc
DELTA=335 (172 added, 156 deleted, 7 changed)
OCL=17167
CL=17180
rm -f $GOROOT/pkg/*
-for i in syscall os math net time
+for i in syscall os math net time http regexp
do
cd $i
make nuke
}
+func (v *Vector) Reset() {
+ v.elem = v.elem[0:0];
+}
+
func (v *Vector) Insert(i int, e Element) {
n := v.Len();
// range check unnecessary - done by runtime
6g -o $GOROOT/pkg/$base.6 $i
done
-for i in net time http
+for i in net time http regexp
do
echo; echo; echo %%%% making lib/$i %%%%; echo
cd $i
A=6
G=$(A)g
L=$(A)l
+PKG=$(GOROOT)/pkg/regexp.$A
-all: main
+test: main.$A test.$A
+ $L -o test test.$A
+ ./test
-main: main.6
- $L -o main main.6
+install: regexp.$A
+ cp regexp.$A $(PKG)
-main.6: regexp.6
+main: main.$A
+ $L -o main main.$A
+
+main.$A: regexp.$A
clean:
- rm -f *.6 main
+ rm -f *.6 test
%.6: %.go
$G $<
err *os.Error;
}
var bad_re = []StringError{
- StringError{ `*`, regexp.ErrBareClosure },
+ StringError{ `*`, regexp.ErrBareClosure },
StringError{ `(abc`, regexp.ErrUnmatchedLpar },
StringError{ `abc)`, regexp.ErrUnmatchedRpar },
StringError{ `x[a-z`, regexp.ErrUnmatchedLbkt },
echo --- cd $1
}
+(xcd lib/regexp
+make clean
+time make
+make test
+)
+
(xcd ../usr/gri/gosrc
make clean
time make