Lines Matching refs:n
41 n := &NinjaReader{
48 go n.run()
50 return n
63 func (n *NinjaReader) Close() {
65 close(n.cancel)
70 case <-n.done:
73 …n.status.Error(fmt.Sprintf("ninja fifo didn't finish after %s", NINJA_READER_CLOSE_TIMEOUT.String(…
79 func (n *NinjaReader) run() {
80 defer close(n.done)
86 f, err := os.Open(n.fifo)
88 n.status.Error(fmt.Sprintf("Failed to open fifo: %v", err))
100 case <-n.cancel:
114 n.status.Error(fmt.Sprintf("Got error reading from ninja: %s", err))
123 n.status.Print(fmt.Sprintf("Missing message of size %d from ninja\n", size))
125 n.status.Error(fmt.Sprintf("Got error reading from ninja: %s", err))
133 n.status.Print(fmt.Sprintf("Error reading message from ninja: %v", err))
139 n.status.SetTotalActions(int(msg.TotalEdges.GetTotalEdges()))
148 n.status.StartAction(action)
161 n.status.FinishAction(ActionResult{
172 n.status.Status(message)
174 n.status.Print("warning: " + message)
176 n.status.Error(message)
178 n.status.Verbose(message)
180 n.status.Print(message)
184 n.status.Finish()