Remove alloc_clear

Use `xcalloc` instead.
Inline `alloc_tv` and `alloc_string_tv` in eval.c
This commit is contained in:
John Schmidt
2014-04-22 11:35:11 +02:00
committed by Thiago de Arruda
parent c70a526a5d
commit 4e1b364a3e
16 changed files with 59 additions and 127 deletions

View File

@@ -326,7 +326,7 @@ qf_init_ext (
/*
* Allocate a new eformat structure and put it at the end of the list
*/
fmt_ptr = (efm_T *)alloc_clear((unsigned)sizeof(efm_T));
fmt_ptr = xcalloc(1, sizeof(efm_T));
if (fmt_first == NULL) /* first one */
fmt_first = fmt_ptr;
else