Lines Matching defs:curFile
277 static IFile *curFile;
759 if (curFile == NULL) {
763 fname = curFile->fname;
764 lineno = curFile->lineno;
2108 incdir = bmake_strdup(curFile->fname);
2182 curFile->lf = lf;
2354 * fname and curFile are altered for the new file
2365 name = curFile->fname;
2377 if (curFile != NULL)
2379 Lst_AtFront(includes, curFile);
2382 curFile = bmake_malloc(sizeof *curFile);
2390 curFile->fname = bmake_strdup(name);
2391 curFile->lineno = line;
2392 curFile->first_lineno = line;
2393 curFile->nextbuf = nextbuf;
2394 curFile->nextbuf_arg = arg;
2395 curFile->lf = NULL;
2400 buf = curFile->nextbuf(curFile->nextbuf_arg, &len);
2403 if (curFile->fname)
2404 free(curFile->fname);
2405 free(curFile);
2408 curFile->P_str = buf;
2409 curFile->P_ptr = buf;
2410 curFile->P_end = buf+len;
2412 curFile->cond_depth = Cond_save_depth();
2550 assert(curFile->nextbuf != NULL);
2553 ptr = curFile->nextbuf(curFile->nextbuf_arg, &len);
2554 curFile->P_ptr = ptr;
2555 curFile->P_str = ptr;
2556 curFile->P_end = ptr + len;
2557 curFile->lineno = curFile->first_lineno;
2564 Cond_restore_depth(curFile->cond_depth);
2566 if (curFile->lf != NULL) {
2567 loadedfile_destroy(curFile->lf);
2568 curFile->lf = NULL;
2571 /* Dispose of curFile info */
2572 /* Leak curFile->fname because all the gnodes have pointers to it */
2573 free(curFile->P_str);
2574 free(curFile);
2576 curFile = Lst_DeQueue(includes);
2578 if (curFile == NULL) {
2589 curFile->fname, curFile->lineno);
2592 ParseSetParseFile(curFile->fname);
2602 IFile *cf = curFile;
2815 lineno = curFile->lineno;
2896 curFile->lf = lf;
2902 curFile->lineno, line);
3195 gn->fname = curFile->fname;
3196 gn->lineno = curFile->lineno;