Searched refs:xmalloc (Results 1 – 21 of 21) sorted by relevance
103 next_node = xmalloc(sizeof(*next_node)); \105 cur_node->string = memcpy(xmalloc(L+1), T, L+1); \141 next_node = xmalloc(sizeof(*next_node));163 cur_filename = memcpy(xmalloc(e-file+1), file, e-file+1);
75 #define xmalloc(size) ({ void *__ptr = malloc(size); \ macro
282 sym = xmalloc(sizeof(*sym)); in __add_symbol()346 newnode = xmalloc(sizeof(*newnode)); in mk_node()375 newnode = xmalloc(sizeof(*newnode)); in copy_node()
59 file = xmalloc(sizeof(*file) + len + 1);77 gs.s = xmalloc(sizeof(char) * 64); in str_append()
59 text = xmalloc(START_STRSIZE); in new_string() 81 text = xmalloc(size + 1); in alloc_string() 411 struct buffer *buf = xmalloc(sizeof(*buf));
50 e = xmalloc(sizeof(*e)); in env_add()304 v = xmalloc(sizeof(*v)); in variable_add()509 out = xmalloc(1); in __expand_string()
72 menu = xmalloc(sizeof(*menu)); in menu_add_entry()166 prop = xmalloc(sizeof(*prop)); in menu_add_prop()669 jump = xmalloc(sizeof(struct jump_key)); in get_prompt_str()
585 out = xmalloc(len); in escape_string_value()739 val_prefixed = xmalloc(val_prefixed_len); in print_symbol_for_rustccfg()
790 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()794 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()948 symbol = xmalloc(sizeof(*symbol)); in sym_lookup()
46 e = xmalloc(sizeof(*e)); in expr_lookup()
36 cd = xmalloc(sizeof(*cd)); in create_die()126 df = xmalloc(sizeof(*df)); in append_item()
48 entry = xmalloc(sizeof(*entry)); in type_list_append()125 e = xmalloc(sizeof(*e)); in type_map_add()205 es = xmalloc(count * sizeof(*es)); in type_map_write()
18 ci = xmalloc(sizeof(*ci)); in cache_set()
231 rule = xmalloc(sizeof(*rule)); in kabi_read_rules()
138 aux = xmalloc(sizeof(*aux) + len); in add_to_hashtable()230 buf = xmalloc(st.st_size + 1); in read_file()
9 static inline void *xmalloc(size_t size) in xmalloc() function
133 buf = xmalloc(st.st_size + 1); in read_text_file()192 mod = xmalloc(sizeof(*mod) + namelen + 1); in new_module()239 struct symbol *s = xmalloc(sizeof(*s) + strlen(name) + 1); in alloc_symbol()317 ns_entry = xmalloc(sizeof(*ns_entry) + strlen(namespace) + 1); in add_namespace()1596 mod->no_trim_symbol = xmalloc(info.no_trim_symbol_len); in read_symbols()2065 tmp = xmalloc(b->pos); in write_if_changed()2294 dl = xmalloc(sizeof(*dl)); in main()
128 elf->symsearch = xmalloc(sizeof(struct symsearch) + in symsearch_init()
310 cmd = xmalloc(strlen(objfile) + sizeof("..cmd")); in parse_source_files() 316 dir = xmalloc(dirlen + 1); in parse_source_files()
71 new = xmalloc(sizeof(*new) + len); in module_alias_printf()
166 sym = xmalloc(sizeof(*sym) + len + 1); in read_symbol()355 markers = xmalloc(sizeof(*markers) * markers_cnt); in write_src()