Lines Matching refs:curFile
455 IncludedFile *curFile = CurFile(); in RememberLocation() local
456 gn->fname = Str_Intern(curFile->name.str); in RememberLocation()
457 gn->lineno = curFile->lineno; in RememberLocation()
497 IncludedFile *curFile = CurFile(); in PrintLocation() local
498 fname = curFile->name.str; in PrintLocation()
499 lineno = curFile->lineno; in PrintLocation()
2157 IncludedFile *curFile; in Parse_PushInput() local
2167 curFile = Vector_Push(&includes); in Parse_PushInput()
2168 curFile->name = FStr_InitOwn(bmake_strdup(name)); in Parse_PushInput()
2169 curFile->lineno = lineno; in Parse_PushInput()
2170 curFile->readLines = readLines; in Parse_PushInput()
2171 curFile->forHeadLineno = lineno; in Parse_PushInput()
2172 curFile->forBodyReadLines = readLines; in Parse_PushInput()
2173 curFile->buf = buf; in Parse_PushInput()
2174 curFile->depending = doing_depend; /* restore this on EOF */ in Parse_PushInput()
2175 curFile->guardState = forLoop == NULL ? GS_START : GS_NO; in Parse_PushInput()
2176 curFile->guard = NULL; in Parse_PushInput()
2177 curFile->forLoop = forLoop; in Parse_PushInput()
2179 if (forLoop != NULL && !For_NextIteration(forLoop, &curFile->buf)) in Parse_PushInput()
2182 curFile->buf_ptr = curFile->buf.data; in Parse_PushInput()
2183 curFile->buf_end = curFile->buf.data + curFile->buf.len; in Parse_PushInput()
2184 curFile->condMinDepth = cond_depth; in Parse_PushInput()
2301 IncludedFile *curFile = CurFile(); in ParseEOF() local
2303 doing_depend = curFile->depending; in ParseEOF()
2304 if (curFile->forLoop != NULL && in ParseEOF()
2305 For_NextIteration(curFile->forLoop, &curFile->buf)) { in ParseEOF()
2306 curFile->buf_ptr = curFile->buf.data; in ParseEOF()
2307 curFile->buf_end = curFile->buf.data + curFile->buf.len; in ParseEOF()
2308 curFile->readLines = curFile->forBodyReadLines; in ParseEOF()
2314 if (curFile->guardState == GS_DONE) { in ParseEOF()
2316 curFile->name.str, NULL); in ParseEOF()
2321 HashEntry_Set(he, curFile->guard); in ParseEOF()
2322 } else if (curFile->guard != NULL) { in ParseEOF()
2323 free(curFile->guard->name); in ParseEOF()
2324 free(curFile->guard); in ParseEOF()
2327 FStr_Done(&curFile->name); in ParseEOF()
2328 Buf_Done(&curFile->buf); in ParseEOF()
2329 if (curFile->forLoop != NULL) in ParseEOF()
2330 ForLoop_Free(curFile->forLoop); in ParseEOF()
2342 curFile = CurFile(); in ParseEOF()
2344 curFile->name.str, curFile->readLines + 1); in ParseEOF()
2346 SetParseFile(curFile->name.str); in ParseEOF()
2362 ParseRawLine(IncludedFile *curFile, char **out_line, char **out_line_end, in ParseRawLine() argument
2365 char *line = curFile->buf_ptr; in ParseRawLine()
2366 char *buf_end = curFile->buf_end; in ParseRawLine()
2373 curFile->readLines++; in ParseRawLine()
2394 curFile->readLines++; in ParseRawLine()
2425 curFile->buf_ptr = p; in ParseRawLine()
2516 IncludedFile *curFile = CurFile(); in ReadLowLevelLine() local
2524 curFile->lineno = curFile->readLines + 1; in ReadLowLevelLine()
2525 res = ParseRawLine(curFile, in ReadLowLevelLine()
2616 IncludedFile *curFile = CurFile(); in ReadHighLevelLine() local
2626 curFile->name.str, curFile->lineno, line); in ReadHighLevelLine()
2627 if (curFile->guardState != GS_NO in ReadHighLevelLine()
2628 && ((curFile->guardState == GS_START && line[0] != '.') in ReadHighLevelLine()
2629 || curFile->guardState == GS_DONE)) in ReadHighLevelLine()
2630 curFile->guardState = GS_NO; in ReadHighLevelLine()
2635 if (curFile->guardState == GS_START) { in ReadHighLevelLine()
2639 curFile->guardState = GS_COND; in ReadHighLevelLine()
2640 curFile->guard = guard; in ReadHighLevelLine()
2642 curFile->guardState = GS_NO; in ReadHighLevelLine()
2722 IncludedFile *curFile = CurFile(); in HandleBreak() local
2728 if (curFile->forLoop != NULL) { in HandleBreak()
2730 For_Break(curFile->forLoop); in HandleBreak()
2809 IncludedFile *curFile = CurFile(); in Parse_GuardElse() local
2810 if (cond_depth == curFile->condMinDepth + 1) in Parse_GuardElse()
2811 curFile->guardState = GS_NO; in Parse_GuardElse()
2817 IncludedFile *curFile = CurFile(); in Parse_GuardEndif() local
2818 if (cond_depth == curFile->condMinDepth in Parse_GuardEndif()
2819 && curFile->guardState == GS_COND) in Parse_GuardEndif()
2820 curFile->guardState = GS_DONE; in Parse_GuardEndif()