Lines Matching refs:c_str
93 FILE* fp = fopen(GetNinjaStampFilename().c_str(), "rb+"); in NeedsRegen()
109 GetNinjaFilename().c_str()); in IsMissingOutputs()
114 GetNinjaShellScriptFilename().c_str()); in IsMissingOutputs()
140 FILE* fp = fopen(stamp_filename.c_str(), "rb"); in CheckStep1()
143 printf("%s: %s\n", stamp_filename.c_str(), strerror(errno)); in CheckStep1()
168 fprintf(stderr, "%s was modified, ignored.\n", s.c_str()); in CheckStep1()
174 printf("file %s: ignored (%f)\n", s.c_str(), ts); in CheckStep1()
178 printf("file %s: dirty (%f)\n", s.c_str(), ts); in CheckStep1()
180 fprintf(stderr, "%s was modified, regenerating...\n", s.c_str()); in CheckStep1()
183 printf("file %s: clean (%f)\n", s.c_str(), ts); in CheckStep1()
190 if (getenv(s.c_str())) { in CheckStep1()
192 printf("env %s: dirty (unset => %s)\n", s.c_str(), getenv(s.c_str())); in CheckStep1()
195 s.c_str()); in CheckStep1()
199 printf("env %s: clean (unset)\n", s.c_str()); in CheckStep1()
206 StringPiece val(getenv(s.c_str())); in CheckStep1()
210 printf("env %s: dirty (%s => %.*s)\n", s.c_str(), s2.c_str(), in CheckStep1()
216 s.c_str(), s2.c_str(), SPF(val)); in CheckStep1()
220 printf("env %s: clean (%.*s)\n", s.c_str(), SPF(val)); in CheckStep1()
279 Glob(gr->pat.c_str(), &files); in CheckGlobResult()
292 printf("wildcard %s: ignored\n", gr->pat.c_str()); in CheckGlobResult()
297 printf("wildcard %s: dirty\n", gr->pat.c_str()); in CheckGlobResult()
300 gr->pat.c_str()); in CheckGlobResult()
303 printf("wildcard %s: clean\n", gr->pat.c_str()); in CheckGlobResult()
328 if (lstat(dir.c_str(), &st) != 0) { in ShouldRunCommand()
348 printf("file %s: dirty\n", sr->cmd.c_str()); in CheckShellResult()
351 sr->cmd.c_str()); in CheckShellResult()
355 printf("file %s: clean\n", sr->cmd.c_str()); in CheckShellResult()
363 printf("file %s: dirty\n", sr->cmd.c_str()); in CheckShellResult()
366 sr->cmd.c_str()); in CheckShellResult()
370 printf("file %s: clean\n", sr->cmd.c_str()); in CheckShellResult()
376 fopen(sr->cmd.c_str(), (sr->op == CommandOp::WRITE) ? "wb" : "ab"); in CheckShellResult()
390 printf("file %s: clean (write)\n", sr->cmd.c_str()); in CheckShellResult()
396 printf("shell %s: clean (no rerun)\n", sr->cmd.c_str()); in CheckShellResult()
403 printf("shell %s: ignored\n", sr->cmd.c_str()); in CheckShellResult()
407 COLLECT_STATS_WITH_SLOW_REPORT("shell time (regen)", sr->cmd.c_str()); in CheckShellResult()
414 printf("shell %s: dirty\n", sr->cmd.c_str()); in CheckShellResult()
417 sr->cmd.c_str()); in CheckShellResult()
422 printf("shell %s: clean (rerun)\n", sr->cmd.c_str()); in CheckShellResult()
462 fprintf(stderr, "%s", msg_.c_str()); in CheckStep2()