Lines Matching refs:curFile

282 static IFile *curFile;  variable
777 if (curFile == NULL) { in Parse_Error()
781 fname = curFile->fname; in Parse_Error()
782 lineno = curFile->lineno; in Parse_Error()
2206 incdir = bmake_strdup(curFile->fname); in Parse_include_file()
2280 curFile->lf = lf; in Parse_include_file()
2467 name = curFile->fname; in Parse_SetInput()
2479 if (curFile != NULL) in Parse_SetInput()
2481 Lst_AtFront(includes, curFile); in Parse_SetInput()
2484 curFile = bmake_malloc(sizeof *curFile); in Parse_SetInput()
2492 curFile->fname = bmake_strdup(name); in Parse_SetInput()
2493 curFile->lineno = line; in Parse_SetInput()
2494 curFile->first_lineno = line; in Parse_SetInput()
2495 curFile->nextbuf = nextbuf; in Parse_SetInput()
2496 curFile->nextbuf_arg = arg; in Parse_SetInput()
2497 curFile->lf = NULL; in Parse_SetInput()
2498 curFile->depending = doing_depend; /* restore this on EOF */ in Parse_SetInput()
2503 buf = curFile->nextbuf(curFile->nextbuf_arg, &len); in Parse_SetInput()
2506 if (curFile->fname) in Parse_SetInput()
2507 free(curFile->fname); in Parse_SetInput()
2508 free(curFile); in Parse_SetInput()
2511 curFile->P_str = buf; in Parse_SetInput()
2512 curFile->P_ptr = buf; in Parse_SetInput()
2513 curFile->P_end = buf+len; in Parse_SetInput()
2515 curFile->cond_depth = Cond_save_depth(); in Parse_SetInput()
2720 assert(curFile->nextbuf != NULL); in ParseEOF()
2722 doing_depend = curFile->depending; /* restore this */ in ParseEOF()
2724 ptr = curFile->nextbuf(curFile->nextbuf_arg, &len); in ParseEOF()
2725 curFile->P_ptr = ptr; in ParseEOF()
2726 curFile->P_str = ptr; in ParseEOF()
2727 curFile->P_end = ptr + len; in ParseEOF()
2728 curFile->lineno = curFile->first_lineno; in ParseEOF()
2735 Cond_restore_depth(curFile->cond_depth); in ParseEOF()
2737 if (curFile->lf != NULL) { in ParseEOF()
2738 loadedfile_destroy(curFile->lf); in ParseEOF()
2739 curFile->lf = NULL; in ParseEOF()
2744 free(curFile->P_str); in ParseEOF()
2745 free(curFile); in ParseEOF()
2747 curFile = Lst_DeQueue(includes); in ParseEOF()
2749 if (curFile == NULL) { in ParseEOF()
2760 curFile->fname, curFile->lineno); in ParseEOF()
2763 ParseSetParseFile(curFile->fname); in ParseEOF()
2773 IFile *cf = curFile; in ParseGetLine()
2986 lineno = curFile->lineno; in ParseReadLine()
3067 curFile->lf = lf; in Parse_File()
3073 curFile->lineno, line); in Parse_File()
3359 gn->fname = curFile->fname; in ParseMark()
3360 gn->lineno = curFile->lineno; in ParseMark()