aboutsummaryrefslogtreecommitdiff
path: root/src/lib/klist.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.
* Reimplement the event queue in event.c using klist.hFelipe Oliveira Carvalho2014-04-07
| | | | | | | | | | | | | | | | | | | | - Add a new macro to klist.h: kl_empty() The whole point of abstract data structures is to avoid reimplementing common actions. The emptiness test seems to be such an action. - Add a new function attribute to func_attr.h: FUNC_ATTR_UNUSED Some of the many functions created by the macros in klist.h may end up not being used. Unused functions cause compilation errors as we compile with -Werror. To mark those functions as possibly unused we can use the FUNC_ATTR_UNUSED now. - Pass `Event` by value `Event` is such a small struct that I don't think we should allocate heap space and pass it by reference. Let's use the stack and memory cache in our favor passing it by value.
* 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
* Add klib.h to src/libFelipe Oliveira Carvalho2014-04-07
As decided on #434 [1]. [1] https://github.com/neovim/neovim/issues/434#issuecomment-39111868 [2] https://github.com/attractivechaos/klib