Home
last modified time | relevance | path

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

/dflybsd-src/contrib/bmake/
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()
134 words_buf = bmake_malloc(str_len + 1); in Substring_Words()
137 words = bmake_malloc((words_cap + 1) * sizeof(words[0])); in Substring_Words()
286 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 Dlst.c42 ListNode *ln = bmake_malloc(sizeof *ln); in LstNodeNew()
55 List *list = bmake_malloc(sizeof *list); in Lst_New()
266 v->items = bmake_malloc(v->cap * v->itemSize); in Vector_Init()
H A Dhash.c144 HashEntry **buckets = bmake_malloc(sizeof *buckets * n); in HashTable_Init()
219 HashEntry **newBuckets = bmake_malloc(sizeof *newBuckets * newSize); in HashTable_Enlarge()
265 he = bmake_malloc(sizeof *he + (size_t)(keyEnd - key)); in HashTable_CreateEntry()
H A Darch.c225 char *result = bmake_malloc(len1 + 1 + len3 + 1 + 1); in FullName()
538 ar = bmake_malloc(sizeof *ar); in ArchStatMember()
616 struct ar_hdr *cached_hdr = bmake_malloc( in ArchStatMember()
679 ar->fnametab = bmake_malloc(size); in ArchSVR4Entry()
H A Dbuf.c147 buf->data = bmake_malloc(cap); in Buf_InitSize()
H A Djob.c765 char *esc = bmake_malloc(strlen(cmd) * 2 + 1); in EscapeShellDblQuot()
2241 job_table = bmake_malloc((size_t)opts.maxJobs * sizeof *job_table); in Job_Init()
2277 fds = bmake_malloc(sizeof *fds * nfds); in Job_Init()
2278 jobByFdIndex = bmake_malloc(sizeof *jobByFdIndex * nfds); in Job_Init()
2544 shell = bmake_malloc(sizeof *shell); in Job_ParseShell()
H A Ddir.c290 CachedDir *dir = bmake_malloc(sizeof *dir); in CachedDir_New()
442 cst = bmake_malloc(sizeof *cst); in cached_stats()
742 char *s = bmake_malloc(s_len + 1); in concat3()
H A Dvar.c351 Var *var = bmake_malloc(sizeof *var); in VarNew()
814 newenv = bmake_malloc(2 * sizeof(char *)); in ClearEnv()
1555 char *errbuf = bmake_malloc(errlen); in VarREError()
1718 words.words = bmake_malloc(sizeof(words.words[0])); in VarSelectWords()
1885 buf = bmake_malloc(9); in VarHash()
2776 pattern = bmake_malloc((size_t)(endpat - (mod + 1)) + 1); in ParseModifier_Match()
3081 res = bmake_malloc(len + 1); in str_toupper()
3095 res = bmake_malloc(len + 1); in str_tolower()
H A Dstr.h261 buf->data = bmake_malloc(buf->cap); in LazyBuf_Add()
H A Dtarg.c179 gn = bmake_malloc(sizeof *gn); in GNode_New()
H A Dfor.c78 ForLoop *f = bmake_malloc(sizeof *f); in ForLoop_New()
H A Dmake.h833 SearchPath *path = bmake_malloc(sizeof *path); in SearchPath_New()
H A Dsuff.c465 Suffix *suff = bmake_malloc(sizeof *suff); in Suffix_New()
1003 Candidate *cand = bmake_malloc(sizeof *cand); in Candidate_New()
H A Dmain.c170 exploded = bmake_malloc((size_t)(p - flags) * 3 + 1); in explode()
220 fname = bmake_malloc(len + 20); in MainParseArgDebugFile()
H A Dcond.c1122 cond_states = bmake_malloc( in Cond_EvalLine()
H A Dmeta.c1155 buf = bmake_malloc(bufsz); in meta_oodate()
H A DChangeLog2015 - use bmake_malloc() where NULL is not tollerated
3289 o bmake_malloc et al moved to their own .c
3330 o make now uses bmake_malloc etc so that it can build natively