Lines Matching refs:curFile
451 IncludedFile *curFile = CurFile(); in RememberLocation() local
452 gn->fname = Str_Intern(curFile->name.str); in RememberLocation()
453 gn->lineno = curFile->lineno; in RememberLocation()
493 IncludedFile *curFile = CurFile(); in PrintLocation() local
494 fname = curFile->name.str; in PrintLocation()
495 lineno = curFile->lineno; in PrintLocation()
2209 IncludedFile *curFile; in Parse_PushInput() local
2219 curFile = Vector_Push(&includes); in Parse_PushInput()
2220 curFile->name = FStr_InitOwn(bmake_strdup(name)); in Parse_PushInput()
2221 curFile->lineno = lineno; in Parse_PushInput()
2222 curFile->readLines = readLines; in Parse_PushInput()
2223 curFile->forHeadLineno = lineno; in Parse_PushInput()
2224 curFile->forBodyReadLines = readLines; in Parse_PushInput()
2225 curFile->buf = buf; in Parse_PushInput()
2226 curFile->depending = doing_depend; /* restore this on EOF */ in Parse_PushInput()
2227 curFile->guardState = forLoop == NULL ? GS_START : GS_NO; in Parse_PushInput()
2228 curFile->guard = NULL; in Parse_PushInput()
2229 curFile->forLoop = forLoop; in Parse_PushInput()
2231 if (forLoop != NULL && !For_NextIteration(forLoop, &curFile->buf)) in Parse_PushInput()
2234 curFile->buf_ptr = curFile->buf.data; in Parse_PushInput()
2235 curFile->buf_end = curFile->buf.data + curFile->buf.len; in Parse_PushInput()
2236 curFile->condMinDepth = cond_depth; in Parse_PushInput()
2358 IncludedFile *curFile = CurFile(); in ParseEOF() local
2360 doing_depend = curFile->depending; in ParseEOF()
2361 if (curFile->forLoop != NULL && in ParseEOF()
2362 For_NextIteration(curFile->forLoop, &curFile->buf)) { in ParseEOF()
2363 curFile->buf_ptr = curFile->buf.data; in ParseEOF()
2364 curFile->buf_end = curFile->buf.data + curFile->buf.len; in ParseEOF()
2365 curFile->readLines = curFile->forBodyReadLines; in ParseEOF()
2371 if (curFile->guardState == GS_DONE) in ParseEOF()
2372 HashTable_Set(&guards, curFile->name.str, curFile->guard); in ParseEOF()
2373 else if (curFile->guard != NULL) { in ParseEOF()
2374 free(curFile->guard->name); in ParseEOF()
2375 free(curFile->guard); in ParseEOF()
2378 FStr_Done(&curFile->name); in ParseEOF()
2379 Buf_Done(&curFile->buf); in ParseEOF()
2380 if (curFile->forLoop != NULL) in ParseEOF()
2381 ForLoop_Free(curFile->forLoop); in ParseEOF()
2393 curFile = CurFile(); in ParseEOF()
2395 curFile->name.str, curFile->readLines + 1); in ParseEOF()
2397 SetParseFile(curFile->name.str); in ParseEOF()
2413 ParseRawLine(IncludedFile *curFile, char **out_line, char **out_line_end, in ParseRawLine() argument
2416 char *line = curFile->buf_ptr; in ParseRawLine()
2417 char *buf_end = curFile->buf_end; in ParseRawLine()
2424 curFile->readLines++; in ParseRawLine()
2445 curFile->readLines++; in ParseRawLine()
2476 curFile->buf_ptr = p; in ParseRawLine()
2567 IncludedFile *curFile = CurFile(); in ReadLowLevelLine() local
2575 curFile->lineno = curFile->readLines + 1; in ReadLowLevelLine()
2576 res = ParseRawLine(curFile, in ReadLowLevelLine()
2681 IncludedFile *curFile = CurFile(); in ReadHighLevelLine() local
2690 if (curFile->guardState != GS_NO in ReadHighLevelLine()
2691 && ((curFile->guardState == GS_START && line[0] != '.') in ReadHighLevelLine()
2692 || curFile->guardState == GS_DONE)) in ReadHighLevelLine()
2693 curFile->guardState = GS_NO; in ReadHighLevelLine()
2698 if (curFile->guardState == GS_START) { in ReadHighLevelLine()
2702 curFile->guardState = GS_COND; in ReadHighLevelLine()
2703 curFile->guard = guard; in ReadHighLevelLine()
2705 curFile->guardState = GS_NO; in ReadHighLevelLine()
2780 IncludedFile *curFile = CurFile(); in HandleBreak() local
2786 if (curFile->forLoop != NULL) { in HandleBreak()
2788 For_Break(curFile->forLoop); in HandleBreak()
2865 IncludedFile *curFile = CurFile(); in Parse_GuardElse() local
2866 if (cond_depth == curFile->condMinDepth + 1) in Parse_GuardElse()
2867 curFile->guardState = GS_NO; in Parse_GuardElse()
2873 IncludedFile *curFile = CurFile(); in Parse_GuardEndif() local
2874 if (cond_depth == curFile->condMinDepth in Parse_GuardEndif()
2875 && curFile->guardState == GS_COND) in Parse_GuardEndif()
2876 curFile->guardState = GS_DONE; in Parse_GuardEndif()