• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ksh-20/ksh/src/lib/libast/vmalloc/

Lines Matching +defs:file +defs:type

37 #define PFFILE(pf)	((pf)->data.data.fm.file)
51 { char* file; /* file name */
67 char f[1]; /* actual file name */
76 static Pfobj_t* pfsearch(Vmalloc_t* vm, const char* file, int line)
78 static Pfobj_t* pfsearch(vm, file, line)
80 const char* file; /* the file issuing the allocation request */
100 /* see if it's there with a combined hash value of vm,file,line */
102 for(cp = file; *cp; ++cp)
106 if(PFLINE(pf) == line && PFVM(pf) == vm && strcmp(PFFILE(pf),file) == 0)
115 /* first get/construct the file name slot */
117 for(cp = file; *cp; ++cp)
121 if(PFLINE(fn) < 0 && strcmp(PFNAME(fn),file) == 0)
125 s = sizeof(Pfobj_t) - sizeof(Pfdata_t) + strlen(file) + 1;
131 strcpy(PFNAME(fn),file);
210 static void pfsetinfo(Vmalloc_t* vm, Vmuchar_t* data, size_t size, const char* file, int line)
212 static void pfsetinfo(vm, data, size, file, line)
216 const char* file;
226 if(!file || line <= 0)
227 { file = "";
231 if((pf = pfsearch(vm,file,line)) )
248 /* sort by file names and line numbers */
281 { /* make sure that the "<>" file comes first */
426 { /* compute summary for file */
437 bufp = (*_Vmstrcpy)(bufp,"file",'=');
473 reg char* file;
478 VMFLF(vm,file,line,func);
493 pfsetinfo(vm,(Vmuchar_t*)data,size,file,line);
496 { vm->file = file; vm->line = line; vm->func = func;
516 reg char* file;
521 VMFLF(vm,file,line,func);
555 { vm->file = file; vm->line = line; vm->func = func;
567 static Void_t* pfresize(Vmalloc_t* vm, Void_t* data, size_t size, int type)
569 static Void_t* pfresize(vm, data, size, type)
573 int type;
580 reg char* file;
598 VMFLF(vm,file,line,func);
620 if((addr = KPVRESIZE(vm,data,news,(type&~VM_RSZERO),Vmbest->resizef)) )
627 pfsetinfo(vm,(Vmuchar_t*)addr,size,file,line);
631 { vm->file = file; vm->line = line; vm->func = func;
641 file = PFFILE(pf);
643 pfsetinfo(vm,(Vmuchar_t*)data,s,file,line);
649 done: if(addr && (type&VM_RSZERO) && oldsize < size)
701 reg char* file;
706 VMFLF(vm,file,line,func);
722 pfsetinfo(vm,(Vmuchar_t*)data,size,file,line);
725 { vm->file = file; vm->line = line; vm->func = func;