Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Replace `alloc_check` by `xmalloc` | John Schmidt | 2014-04-10 |
| | | | | | | | | | | | `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 | ||
* | Fix/add more files with to clint-files.txt | Thiago de Arruda | 2014-04-08 |
| | |||
* | Implement xcalloc and use it in klist.h (use xrealloc as well) | Felipe Oliveira Carvalho | 2014-04-07 |
| | | | | Bonus: implement lalloc_clear and alloc_clear using xcalloc | ||
* | Remove simpler cases of OOM error handling (after *alloc calls) | Felipe Oliveira Carvalho | 2014-04-06 |
| | | | | | | | | | | | | | | | | | | By simpler cases I mean cases where the OOM error is not expected to be handled by the caller of the function that calls `alloc`, `lalloc`, `xrealloc`, `xmalloc`, `alloc_clear`, and `lalloc_clear`. These are the functions that: - Do not return an allocated buffer - Have OOM as the only error condition I took note of the functions that expect the caller to handle the OOM error and will go through them to check all the callers that may be handling OOM error in future commits. I'm ignoring eval.c and ex_.c in this series of commits. eval.c will soon be obsolete and I will deal with ex_.c in later PRs. | ||
* | Implement `xstrdup` and `xstrndup` | Thiago de Arruda | 2014-04-06 |
| | | | | | Utility functions for copying strings to newly-allocated chunks. They either succeed or exit the program. | ||
* | Extract memory.c from misc2.c | John Schmidt | 2014-04-04 |