aboutsummaryrefslogtreecommitdiff
path: root/src/memory.h
Commit message (Collapse)AuthorAge
* Introduce nvim namespace: Move files.Eliseo Martínez2014-05-15
| | | | | | Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library.
* Add channel moduleThiago de Arruda2014-05-12
| | | | | | - Add channel module that exposes the API over arbitrary streams - Add `xmemdup` for duplicating memory chunks - Make job exit callback optional
* Delete the lalloc() functionFelipe Oliveira Carvalho2014-05-07
|
* memory: implement xstp(n)cpyNicolas Hillegeer2014-04-29
| | | | | Both are implemented to POSIX 2008 spec, though I'm not sure I'm happy about stpncpy's behaviour.
* Remove `alloc_clear`John Schmidt2014-04-28
| | | | | Use `xcalloc` instead. Inline `alloc_tv` and `alloc_string_tv` in eval.c
* (verbose_)?try_malloc() to use on buf_write()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | | | | There will be more use cases for try_malloc(): see #556. - Reimplemented xmalloc() using try_malloc(). - verbose_try_malloc() is just like try_malloc() but shows an out-of-memory error message before returning NULL. - Let the compiler generate size>>1 assembly for signed types. We're not using old compilers here. - Add proper function attributes to the new functions in memory.h
* Use xmalloc() and xmemdupz() in file_pat_to_reg_pat()Felipe Oliveira Carvalho2014-04-24
| | | | | | | | Unfortunately there's still a case where NULL can be returned from file_pat_to_reg_pat(). xmemdupz() and xmallocz() aren't static anymore. There are many use cases for these function.
* Remove `lalloc_clear`John Schmidt2014-04-19
| | | | | Use `xcalloc` instead. Change some local variables to avoid casting.
* Replace `alloc_check` by `xmalloc`John Schmidt2014-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
* Implement xcalloc and use it in klist.h (use xrealloc as well)Felipe Oliveira Carvalho2014-04-07
| | | | Bonus: implement lalloc_clear and alloc_clear using xcalloc
* Implement `xstrdup` and `xstrndup`Thiago de Arruda2014-04-06
| | | | | Utility functions for copying strings to newly-allocated chunks. They either succeed or exit the program.
* Extract memory.c from misc2.cJohn Schmidt2014-04-04