mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors.
lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
This commit is contained in:
parent
3ea8d854a3
commit
aaf63f8d06
57 changed files with 341 additions and 339 deletions
|
|
@ -32,7 +32,7 @@ var good_re = []string{
|
|||
// TODO: nice to do this with a map
|
||||
type stringError struct {
|
||||
re string;
|
||||
err *os.Error;
|
||||
err os.Error;
|
||||
}
|
||||
var bad_re = []stringError{
|
||||
stringError{ `*`, regexp.ErrBareClosure },
|
||||
|
|
@ -85,7 +85,7 @@ var matches = []tester {
|
|||
tester{ `a*(|(b))c*`, "aacc", vec{0,4, 2,2, -1,-1} },
|
||||
}
|
||||
|
||||
func compileTest(t *testing.T, expr string, error *os.Error) *regexp.Regexp {
|
||||
func compileTest(t *testing.T, expr string, error os.Error) *regexp.Regexp {
|
||||
re, err := regexp.Compile(expr);
|
||||
if err != error {
|
||||
t.Error("compiling `", expr, "`; unexpected error: ", err.String());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue