Home
last modified time | relevance | path

Searched refs:xmalloc (Results 1 – 25 of 39) sorted by relevance

12

/ndk/sources/host-tools/make-3.81/
Drule.c127 name = (char *) xmalloc (namelen + 1); in count_implicit_rule_limits()
183 targname = xmalloc (1 + len + 1); in convert_suffix_rule()
189 names = (char **) xmalloc (2 * sizeof (char *)); in convert_suffix_rule()
201 depname = xmalloc (1 + len + 1); in convert_suffix_rule()
365 r = (struct rule *) xmalloc (sizeof (struct rule)); in install_pattern_rule()
367 r->targets = (char **) xmalloc (2 * sizeof (char *)); in install_pattern_rule()
368 r->suffixes = (char **) xmalloc (2 * sizeof (char *)); in install_pattern_rule()
369 r->lens = (unsigned int *) xmalloc (2 * sizeof (unsigned int)); in install_pattern_rule()
394 r->cmds = (struct commands *) xmalloc (sizeof (struct commands)); in install_pattern_rule()
477 struct rule *r = (struct rule *) xmalloc (sizeof (struct rule)); in create_pattern_rule()
[all …]
Dmisc.c174 result = (char *) xmalloc (len1 + len2 + len3 + 1); in concat()
334 #undef xmalloc
339 xmalloc (unsigned int size) in xmalloc() function
390 register char *out = (char *) xmalloc (length + 1); in savestring()
488 struct dep *d = (struct dep *) xmalloc (sizeof (struct dep)); in alloc_dep()
520 c = (struct dep *) xmalloc (sizeof (struct dep)); in copy_dep_chain()
Ddir.c453 dir = (struct directory *) xmalloc (sizeof (struct directory)); in find_directory()
514 xmalloc (sizeof (struct directory_contents)); in find_directory()
705 df = (struct dirfile *) xmalloc (sizeof (struct dirfile)); in dir_contents_file_exists_p()
865 xmalloc (sizeof (struct directory_contents)); in file_impossible()
877 new = (struct dirfile *) xmalloc (sizeof (struct dirfile)); in file_impossible()
1114 new = (struct dirstream *) xmalloc (sizeof (struct dirstream)); in open_dirstream()
1146 buf = xmalloc (bufsz); in read_dirstream()
1152 d->d_name = xmalloc(len); in read_dirstream()
Djob.c304 char *const path = (char *) xmalloc (final_size); in create_batch_file()
1503 lines = (char **) xmalloc (cmds->ncommand_lines * sizeof (char *)); in new_job()
1607 c = (struct child *) xmalloc (sizeof (struct child)); in new_job()
2401 new_argv = (char **) xmalloc (i * sizeof (char *)); in construct_command_argv_internal()
2404 ap = new_argv[0] = argstr = (char *) xmalloc (i); in construct_command_argv_internal()
2647 buffer = (char *)xmalloc (strlen (line)+1); in construct_command_argv_internal()
2664 new_argv = (char **) xmalloc (2 * sizeof (char *)); in construct_command_argv_internal()
2776 new_argv = (char **) xmalloc(2 * sizeof (char *)); in construct_command_argv_internal()
2803 new_argv = (char **) xmalloc(3 * sizeof (char *)); in construct_command_argv_internal()
2875 new_argv = (char **) xmalloc (4 * sizeof (char *)); in construct_command_argv_internal()
[all …]
Dvmsfunctions.c37 struct DIR *dir = (struct DIR *)xmalloc (sizeof (struct DIR)); in opendir()
38 struct NAM *dnam = (struct NAM *)xmalloc (sizeof (struct NAM)); in opendir()
40 char *searchspec = (char *)xmalloc (MAXNAMLEN + 1); in opendir()
Dread.c399 ebuf.buffer = ebuf.bufnext = ebuf.bufstart = xmalloc (ebuf.size); in eval_makefile()
504 commands = xmalloc (200); in eval()
573 collapsed = (char *) xmalloc (collapsed_length); in eval()
1326 char *definition = (char *) xmalloc (length); in do_define()
1531 conditionals->ignoring = (char *) xmalloc (conditionals->allocated); in conditional_line()
1532 conditionals->seen_else = (char *) xmalloc (conditionals->allocated); in conditional_line()
1890 cmds = (struct commands *) xmalloc (sizeof (struct commands)); in record_files()
1931 targets = (char **) xmalloc (5 * sizeof (char *)); in record_files()
1932 target_percents = (char **) xmalloc (5 * sizeof (char *)); in record_files()
2364 new1 = (struct nameseq *) xmalloc (size); in parse_file_seq()
[all …]
Dvariable.c48 = (struct pattern_var *) xmalloc (sizeof (struct pattern_var)); in create_pattern_var()
209 v = (struct variable *) xmalloc (sizeof (struct variable)); in define_variable_in_set()
452 xmalloc (sizeof (struct variable_set_list)); in initialize_file_variables()
453 l->set = (struct variable_set *) xmalloc (sizeof (struct variable_set)); in initialize_file_variables()
548 set = (struct variable_set *) xmalloc (sizeof (struct variable_set)); in create_new_variable_set()
553 xmalloc (sizeof (struct variable_set_list)); in create_new_variable_set()
945 result = result_0 = (char **) xmalloc ((table.ht_fill + 2) * sizeof (char *)); in target_environment()
980 *result = (char *) xmalloc (100); in target_environment()
1144 path_string = (char *)xmalloc (5 + pathlen + 2 + 1); in do_variable_definition()
Dvpath.c226 vpath = (char **) xmalloc (maxelem * sizeof (char *)); in construct_vpath_list()
294 path = (struct vpath *) xmalloc (sizeof (struct vpath)); in construct_vpath_list()
416 name = (char *) xmalloc (maxvpath + 1 + name_dplen + 1 + flen + 1); in selective_vpath_search()
Dimplicit.c235 = (struct rule **) xmalloc (num_pattern_rules * max_pattern_targets in pattern_search()
621 d->name = xmalloc (strlen (p) + l + 1); in pattern_search()
926 file->stem = (char *) xmalloc (fullstemlen + 1); in pattern_search()
953 new->name = p = (char *) xmalloc (rule->lens[i] + fullstemlen + 1); in pattern_search()
Dmain.c859 *name = xmalloc (TEMPLATE_LEN + 1); in open_tmpfile()
1021 setvbuf (stdout, _IOLBF, xmalloc (BUFSIZ), BUFSIZ); in main()
1731 xmalloc (sizeof (struct stringlist)); in main()
1732 jobserver_fds->list = (char **) xmalloc (sizeof (char *)); in main()
1733 jobserver_fds->list[0] = xmalloc ((sizeof ("1024")*2)+1); in main()
1994 nargv = (char **) xmalloc ((nargc + 2) * sizeof (char *)); in main()
2318 cv = (struct command_variable *) xmalloc (sizeof (*cv)); in handle_non_switch_argument()
2475 xmalloc (sizeof (struct stringlist)); in decode_switches()
2478 sl->list = (char **) xmalloc (5 * sizeof (char *)); in decode_switches()
2598 p = (char *) xmalloc (2 * len); in decode_env_switches()
Ddefault.c558 f->cmds = (struct commands *) xmalloc (sizeof (struct commands)); in install_default_suffix_rules()
Dremote-cstms.c101 normalized_cwd = (char *) xmalloc (GET_PATH_MAX); in start_remote_job_p()
Dcommands.c286 lines = (char **) xmalloc (5 * sizeof (char *)); in chop_commands()
332 cmds->lines_flags = (char *) xmalloc (nlines); in chop_commands()
Dstrcache.c46 new = (struct strcache *) xmalloc (sizeof (*new) + bufsize); in new_cache()
Dalloca.c91 #define malloc xmalloc
/ndk/sources/host-tools/sed-4.2.1/lib/
Dxmalloc.c43 xmalloc (size_t n) in xmalloc() function
82 return memset (xmalloc (s), 0, s); in xzalloc()
109 return memcpy (xmalloc (s), p, s); in xmemdup()
Dxalloc.h55 void *xmalloc (size_t s) ATTRIBUTE_MALLOC;
86 # define XMALLOC(t) ((t *) xmalloc (sizeof (t)))
91 ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t))))
125 return xmalloc (n * s); in xnmalloc()
Ddirname.c78 char *dir = xmalloc (length + append_dot + 1); in dir_name()
Dbasename.c94 char *p = xmalloc (length + 3); in base_name()
Dgnulib.mk1131 EXTRA_DIST += xalloc.h xmalloc.c
1133 EXTRA_libsed_a_SOURCES += xmalloc.c
/ndk/sources/host-tools/sed-4.2.1/m4/
Dxalloc.m49 AC_LIBOBJ([xmalloc])
21 # Prerequisites of lib/xmalloc.c.
/ndk/sources/host-tools/make-3.81/w32/
Dpathstuff.c164 nutc_path = xmalloc(nutc_path_len); in convert_path_to_nutc()
220 nutc_path = xmalloc(nutc_path_len); in convert_path_to_nutc()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dutils.h37 VOID *xmalloc P_((size_t size));
/ndk/sources/host-tools/sed-4.2.1/
Dbootstrap.sh.in136 ${CC} -DHAVE_CONFIG_H -I.. -I. -c xmalloc.c || exit 1
Dbootstrap.sh136 ${CC} -DHAVE_CONFIG_H -I.. -I. -c xmalloc.c || exit 1

12