Searched refs:bmake_malloc (Results 1 – 18 of 18) sorted by relevance
30 void *bmake_malloc(size_t);36 #define bmake_malloc(x) emalloc(x) macro
60 bmake_malloc(size_t len) in bmake_malloc() function101 p = bmake_malloc(len + 1); in bmake_strndup()
105 result = bmake_malloc((unsigned int)(len1 + len2 + 2)); in str_concat()156 *buffer = bmake_malloc(curlen = len); in brk_string()162 argv = bmake_malloc((argmax + 1) * sizeof(char *)); in brk_string()
151 t->bucketPtr = hp = bmake_malloc(sizeof(*hp) * i); in Hash_InitTable()293 e = bmake_malloc(sizeof(*e) + keylen); in Hash_CreateEntry()454 t->bucketPtr = hp = bmake_malloc(sizeof(*hp) * i); in RebuildTable()
415 buf = sacrifice = bmake_malloc(sz); in Arch_ParseArchive()450 nameBuf = bmake_malloc(sz); in Arch_ParseArchive()481 nameBuf = bmake_malloc(sz); in Arch_ParseArchive()661 ar = bmake_malloc(sizeof(Arch)); in ArchStatMember()738 Hash_SetValue(he, bmake_malloc(sizeof(struct ar_hdr))); in ArchStatMember()812 ar->fnametab = bmake_malloc(size); in ArchSVR4Entry()1247 libName = bmake_malloc(sz); in Arch_FindLib()
559 emptySuff = suffNull = bmake_malloc(sizeof(Suff)); in Suff_ClearSuffixes()983 s = bmake_malloc(sizeof(Suff)); in Suff_AddSuffix()1206 s2 = bmake_malloc(sizeof(Src)); in SuffAddSrc()1224 s2 = bmake_malloc(sizeof(Src)); in SuffAddSrc()1490 ret = bmake_malloc(sizeof(Src)); in SuffFindCmds()2113 targ = bmake_malloc(sizeof(Src)); in SuffFindNormalDeps()2130 targ->pref = bmake_malloc(prefLen + 1); in SuffFindNormalDeps()2159 targ = bmake_malloc(sizeof(Src)); in SuffFindNormalDeps()
109 new_ptr = bmake_malloc(len + 1); in make_str()179 new_for = bmake_malloc(sizeof *new_for); in For_Eval()
213 bp->buffer = bmake_malloc(size); in Buf_Init()
314 entry->clientPtr = bmake_malloc(sizeof(*cst)); in cached_stats()358 dotLast = bmake_malloc(sizeof(Path)); in Dir_Init()717 file = bmake_malloc(otherLen + cp - start + 1); in DirExpandCurly()1652 p = bmake_malloc(sizeof(Path)); in Dir_AddDir()
437 v = bmake_malloc(sizeof(Var)); in VarFind()522 v = bmake_malloc(sizeof(Var)); in VarAdd()830 newenv = bmake_malloc(2 * sizeof(char *)); in Var_UnExport()1660 errbuf = bmake_malloc(errlen); in VarREError()1885 av = bmake_malloc((ac + 1) * sizeof(char *)); in VarSelectWords()2002 av = bmake_malloc((ac + 1) * sizeof(char *)); in VarModify()2933 newStr = bmake_malloc(newStrSize); in ApplyModifiers()3249 pattern = bmake_malloc(cp - tstr); in ApplyModifiers()3476 pattern.matches = bmake_malloc(pattern.nsub * in ApplyModifiers()3968 v = bmake_malloc(sizeof(Var)); in Var_Parse()
793 escCmd = bmake_malloc((strlen(cmd) * 2) + 1); in JobPrintCommand()2224 shellErrFlag = bmake_malloc(n); in Shell_Init()2279 job_table = bmake_malloc(maxJobs * sizeof *job_table); in Job_Init()2317 fds = bmake_malloc(sizeof (*fds) * (2 + maxJobs)); in Job_Init()2318 jobfds = bmake_malloc(sizeof (*jobfds) * (2 + maxJobs)); in Job_Init()2581 commandShell = bmake_malloc(sizeof(Shell)); in Job_ParseShell()
237 st = nf = bmake_malloc(len * 3 + 1); in explode()342 fname = bmake_malloc(len + 20); in parse_debug_options()734 buf = bmake_malloc(len = strlen(line) + strlen(argv0) + 2); in Main_ParseArgLine()1549 char *name, *path = bmake_malloc(len); in ReadMakefile()1750 res = bmake_malloc(1); in Cmd_Exec()
401 lf = bmake_malloc(sizeof(*lf)); in loadedfile_create()542 char *b = bmake_malloc(lf->len + 1); in loadfile()557 lf->buf = bmake_malloc(lf->len); in loadfile()2398 dirname = bmake_malloc(len + 1); in ParseSetParseFile()2484 curFile = bmake_malloc(sizeof *curFile); in Parse_SetInput()
236 gn = bmake_malloc(sizeof(GNode)); in Targ_NewGN()
1273 cond_state = bmake_malloc(max_if_depth * sizeof(*cond_state)); in Cond_Eval()
1097 buf = bmake_malloc(bufsz); in meta_oodate()
155 - use bmake_malloc() where NULL is not tollerated1429 o bmake_malloc et al moved to their own .c1470 o make now uses bmake_malloc etc so that it can build natively
85 #define PAlloc(var,ptype) var = (ptype) bmake_malloc(sizeof *(var))