files that are okay from the last gofmt round

R=gri
http://go/go-review/1015011
This commit is contained in:
Russ Cox 2009-10-27 22:47:54 -07:00
parent 58ee1f5d54
commit d2829faa7c
16 changed files with 53 additions and 68 deletions

View file

@ -220,7 +220,7 @@ func (e *newThreadError) String() string {
return fmt.Sprintf("newThread wait wanted pid %v and signal %v, got %v and %v", e.Pid, e.StopSignal(), e.wantPid, e.wantSig);
}
type ProcessExited struct {}
type ProcessExited struct{}
func (p ProcessExited) String() string {
return "process exited";
@ -449,9 +449,9 @@ func (t *thread) wait() {
if err == nil {
continue;
}
// If we failed to continue, just let
// the stop go through so we can
// update the thread's state.
// If we failed to continue, just let
// the stop go through so we can
// update the thread's state.
}
if !<-t.proc.ready {
// The monitor exited
@ -852,12 +852,8 @@ func (t *thread) stepAsync(ready chan os.Error) os.Error {
return err;
}
t.setState(singleStepping);
t.onStop(func() {
ready <- nil;
},
func(err os.Error) {
ready <- err;
});
t.onStop(func() { ready <- nil },
func(err os.Error) { ready <- err });
return nil;
}
@ -1100,9 +1096,7 @@ func (p *process) WaitStop() os.Error {
}
p.transitionHandlers.Push(h);
};
h.onErr = func(err os.Error) {
ready <- err;
};
h.onErr = func(err os.Error) { ready <- err };
p.transitionHandlers.Push(h);
return nil;
});
@ -1114,9 +1108,7 @@ func (p *process) WaitStop() os.Error {
}
func (p *process) Stop() os.Error {
err := p.do(func() os.Error {
return p.stopAsync();
});
err := p.do(func() os.Error { return p.stopAsync() });
if err != nil {
return err;
}