Home
last modified time | relevance | path

Searched refs:bmake_malloc (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/usr.bin/make/
H A Dmake_malloc.c47 bmake_malloc(size_t len) in bmake_malloc() function
64 p = bmake_malloc(size); in bmake_strdup()
72 char *p = bmake_malloc(len + 1); in bmake_strldup()
H A Dstr.c86 char *result = bmake_malloc(len1 + len2 + 1); in str_concat2()
99 char *result = bmake_malloc(len1 + len2 + len3 + 1); in str_concat3()
138 words_buf = bmake_malloc(str_len + 1); in Substring_Words()
141 words = bmake_malloc((words_cap + 1) * sizeof(words[0])); in Substring_Words()
290 words.words = bmake_malloc((swords.len + 1) * sizeof(words.words[0])); in Str_Words()
H A Dmake_malloc.h30 void *bmake_malloc(size_t) MAKE_ATTR_USE;
36 #define bmake_malloc(n) emalloc(n) macro
H A Dhash.c139 HashEntry **buckets = bmake_malloc(sizeof *buckets * n); in HashTable_Init()
227 HashEntry **newBuckets = bmake_malloc(sizeof *newBuckets * newSize); in HashTable_Enlarge()
272 he = bmake_malloc(sizeof *he + (size_t)(keyEnd - key)); in HashTable_CreateEntry()
H A Dlst.c42 ListNode *ln = bmake_malloc(sizeof *ln); in LstNodeNew()
248 v->items = bmake_malloc(v->cap * v->itemSize); in Vector_Init()
H A Darch.c434 ar = bmake_malloc(sizeof *ar); in ArchStatMember()
504 struct ar_hdr *cached_hdr = bmake_malloc( in ArchStatMember()
564 ar->fnametab = bmake_malloc(size); in ArchSVR4Entry()
H A Dbuf.c147 buf->data = bmake_malloc(cap); in Buf_InitSize()
H A Dcond.c1056 cond_states = bmake_malloc( in Cond_EvalLine()
1216 guard = bmake_malloc(sizeof(*guard)); in Cond_ExtractGuard()
1229 guard = bmake_malloc(sizeof(*guard)); in Cond_ExtractGuard()
H A Djob.c739 char *esc = bmake_malloc(strlen(cmd) * 2 + 1);
2166 job_table = bmake_malloc((size_t)opts.maxJobs * sizeof *job_table); in Shell_Init()
2200 fds = bmake_malloc(sizeof *fds * nfds); in AddSig()
2201 jobByFdIndex = bmake_malloc(sizeof *jobByFdIndex * nfds); in AddSig()
2448 shell = bmake_malloc(sizeof *shell); in Job_ParseShell()
H A Ddir.c276 CachedDir *dir = bmake_malloc(sizeof *dir); in CachedDir_New()
428 cst = bmake_malloc(sizeof *cst); in cached_stats()
744 char *s = bmake_malloc(s_len + 1); in concat3()
H A Dvar.c403 Var *var = bmake_malloc(sizeof *var);
891 newenv = bmake_malloc(2 * sizeof(char *)); in ClearEnv()
1565 char *errbuf = bmake_malloc(errlen);
1720 words.words = bmake_malloc(sizeof(words.words[0])); in VarSelectWords()
1876 buf = bmake_malloc(9); in Hash()
2753 pattern = bmake_malloc((size_t)(endpat - (mod + 1)) + 1); in ParseModifier_Match()
3141 char *res = bmake_malloc(n);
3156 char *res = bmake_malloc(n);
3166 char *res = bmake_malloc(n);
H A Dstr.h255 buf->data = bmake_malloc(buf->cap); in LazyBuf_Add()
H A Dfor.c94 ForLoop *f = bmake_malloc(sizeof *f); in ForLoop_New()
H A Dtarg.c185 gn = bmake_malloc(sizeof *gn); in GNode_New()
H A Dmake.h837 SearchPath *path = bmake_malloc(sizeof *path);
H A Dsuff.c445 Suffix *suff = bmake_malloc(sizeof *suff); in Suffix_New()
966 Candidate *cand = bmake_malloc(sizeof *cand); in Candidate_New()
H A Dmain.c166 exploded = bmake_malloc((size_t)(p - flags) * 3 + 1); in explode()
216 fname = bmake_malloc(len + 20); in MainParseArgDebugFile()
H A Dmeta.c1128 buf = bmake_malloc(bufsz); in meta_oodate()
H A Dparse.c313 List *list = bmake_malloc(sizeof *list); in Lst_New()