John Schmidt
63cc8b6934
Remove lalloc_clear
...
Use `xcalloc` instead. Change some local variables
to avoid casting.
2014-04-19 09:36:17 -03:00
John Schmidt
3fcdb2ab29
Replace alloc_check
by xmalloc
...
`alloc_check` is just a wrapper around xmalloc, so we can remove it and use
xmalloc directly. ref #487 / #488
The call was replaced in the following files:
- ex_cmds.c
- misc1.c
- ops.c
2014-04-10 17:03:50 -03:00
Felipe Oliveira Carvalho
fac85c1724
Implement xcalloc and use it in klist.h (use xrealloc as well)
...
Bonus: implement lalloc_clear and alloc_clear using xcalloc
2014-04-07 00:22:01 -03:00
Thiago de Arruda
fdec1d126f
Implement xstrdup
and xstrndup
...
Utility functions for copying strings to newly-allocated chunks. They either
succeed or exit the program.
2014-04-06 11:32:47 -03:00
John Schmidt
6f53cb1cc3
Extract memory.c from misc2.c
2014-04-04 16:33:12 -03:00