Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 47 of file log2lines.c.
Referenced by logSource().
{ int i = 0, min = 0, max = 0; char s[LINESIZE]; FILE *src; strcpy(s, opt_SourcesPath); strcat(s, fileName); max = line + opt_SrcPlus; if ((src = fopen(s, "r"))) { min = line - opt_Source; min = (min < 0) ? 0 : min; while (i < max && fgets(s, LINESIZE, src)) { if (i >= min) { if (i == line) log(outFile, "| ----\n"); log(outFile, "| %4.4d %s", i + 1, s); } i++; } fclose(src); if ( i < min ) log(outFile, "| S--- source has only %d lines! (check source/revision)\n", i); } else l2l_dbg(1, "Can't open: %s (check " SOURCES_ENV ")\n", s); }