Lines Matching refs:file

36 /* structure to keep track of file names */
40 char file[1];
67 static int Dbfd = 2; /* default warning file descriptor */
100 const char* file, int line, const Void_t* func, int type)
102 static void dbwarn(vm, data, where, file, line, func, type)
106 const char* file; /* file where call originates */
173 if(file && file[0] && line > 0 && (bufp + strlen(file) + SLOP) < endbuf)
175 bufp = (*_Vmstrcpy)(bufp, file, ',');
189 const char* file, int line, const Void_t* func, int type)
191 static void dbwatch(vm, data, file, line, func, type)
194 const char* file;
204 { dbwarn(vm,data,type,file,line,func,DB_WATCH);
212 static void dbsetinfo(Vmuchar_t* data, size_t size, const char* file, int line)
214 static void dbsetinfo(data, size, file, line)
217 const char* file; /* file where the request came from */
226 /* find the file structure */
227 if(!file || !file[0])
231 if(strcmp(db->file,file) == 0)
234 { db = (Dbfile_t*)vmalloc(Vmheap,sizeof(Dbfile_t)+strlen(file));
236 { (*_Vmstrcpy)(db->file,file,0);
248 DBSETFL(data,(db ? db->file : NIL(char*)),line);
384 reg char* file;
391 VMFLF(vm,file,line,func);
394 { dbwarn(vm,NIL(Vmuchar_t*),0,file,line,func,DB_ALLOC);
408 { dbwarn(vm,NIL(Vmuchar_t*),DB_ALLOC,file,line,func,DB_ALLOC);
413 dbsetinfo(data,size,file,line);
416 { vm->file = file; vm->line = line; vm->func = func;
421 dbwatch(vm,data,file,line,func,DB_ALLOC);
439 char* file;
448 VMFLF(vm,file,line,func);
456 { dbwarn(vm,NIL(Vmuchar_t*),0,file,line,func,DB_FREE);
466 { dbwarn(vm,(Vmuchar_t*)data,offset == -1L ? 0 : 1,file,line,func,DB_FREE);
475 dbwatch(vm,data,file,line,func,DB_FREE);
478 { vm->file = file; vm->line = line; vm->func = func;
509 char *file, *oldfile;
527 VMFLF(vm,file,line,func);
530 { dbwarn(vm,NIL(Vmuchar_t*),0,file,line,func,DB_RESIZE);
540 { dbwarn(vm,(Vmuchar_t*)addr,offset == -1L ? 0 : 1,file,line,func,DB_RESIZE);
549 dbwatch(vm,addr,file,line,func,DB_RESIZE);
564 { dbwarn(vm,NIL(Vmuchar_t*),DB_ALLOC,file,line,func,DB_RESIZE);
569 dbsetinfo(data,size,file,line);
572 { vm->file = file; vm->line = line;
576 dbwatch(vm,data,file,line,func,DB_RESIZED);
706 reg char* file;
713 VMFLF(vm,file,line,func);
733 dbsetinfo(data,size,file,line);
736 { vm->file = file; vm->line = line; vm->func = func;