aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Added clint check for TRUE/FALSEHinidu2014-04-07
|
* Use stdbool in os moduleHinidu2014-04-07
|
* Turn Event into a tagged unionFelipe Oliveira Carvalho2014-04-07
| | | | | If we ever need arbitrary data or more than very few bytes on `Events` we just have to add a `void *` field in the `data` union.
* 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
* Remove simpler cases of OOM error handling (after *alloc calls)Felipe Oliveira Carvalho2014-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.
* Simplify tricky preprocessor tests in ff_check_visited()Felipe Oliveira Carvalho2014-04-06
|
* Remove unneeded variable `in_os_delay`Thiago de Arruda2014-04-06
| | | | | This variable only existed for the old SIGQUIT handler. Now it's no longer necessary, especially when Neovim stops being a terminal program.
* Add comments and fix `os_microdelay` callThiago de Arruda2014-04-06
|
* Remove `RealWaitForChar` and `mch_new_shellsize`Thiago de Arruda2014-04-06
| | | | | | The last occurrence of `RealWaitForChar` was replaced by the `os_microdelay` function. `mch_new_shellsize` had an empty body, so there seems to be no reason for keeping it around
* Implement os_microdelay and os_delay on top of itThiago de Arruda2014-04-06
|
* Replace `strdup` calls by `xstrdup`Thiago de Arruda2014-04-06
|
* 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.
* vim-patch:7.4.178oni-link2014-04-06
| | | | | | | Problem: The J command does not update '[ and '] marks. (William Gardner) Solution: Set the marks. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=647e6bb15aa3f864eaf447fe77e3e3ae7e37b134
* Use early return for rejecting_deadly in signal_cbThiago de Arruda2014-04-06
|
* vim-patch:7.4.173oni-link2014-04-06
| | | | | | | | Problem: When using scrollbind the cursor can end up below the last line. (mvxxc) Solution: Reset w_botfill when scrolling up. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=233ad7b960d0fbeb224b383918113b25c74ebe35
* Moved mch_get_host_name and renamed it to os_get_hostanmeStefan Hoffmann2014-04-05
|
* Moved mch_get_pid and renamed it to os_get_pidStefan Hoffmann2014-04-05
|
* vim-patch:7.4.171oni-link2014-04-05
| | | | | | | | Problem: Redo does not set v:count and v:count1. Solution: Use a separate buffer for redo, so that we can set the counts when performing redo. https://code.google.com/p/vim/source/detail?r=beb037a6c2708f539d50840637f70eed0811d93c
* Remove the old `mch_call_shell` implementationThiago de Arruda2014-04-05
|
* Rewrite `mch_call_shell` on top of libuvThiago de Arruda2014-04-05
| | | | | | - Rename to `os_call_shell` - Use another entry point for libuv default event loop - Fix the `call_shell` reference in misc2.c
* Stop queueing events when signals are rejectedThiago de Arruda2014-04-05
| | | | | The only exception is SIGINT, which will set `got_int` directly. This will be necessary for the new implementation of `mch_call_shell`
* Add helpers for debugging with valgrindThiago de Arruda2014-04-05
| | | | | | | The environment variable USE_VALGRIND can be set to run tests with valgrind. If VALGRIND_GDB is set, valgrind will start it's own gdbserver for remote debugging with `target remote | vgdb`. USE_GDB can still be used, but it will be ignored if USE_VALGRIND is set.
* vim-patch:7.4.172oni-link2014-04-05
| | | | | | | | Problem: The blowfish code mentions output feedback, but the code is actually doing cipher feedback. Solution: Adjust names and comments. https://code.google.com/p/vim/source/detail?r=391e10afccf6879dcfab8b28cb1587a13eb835c0
* Remove mblen() checkJohn Schmidt2014-04-05
|
* Remove xterm_saveJohn Schmidt2014-04-05
|
* Remove xpmJohn Schmidt2014-04-05
|
* Remove tclJohn Schmidt2014-04-05
|
* Remove oleJohn Schmidt2014-04-05
|
* Remove mzschemeJohn Schmidt2014-04-05
|
* Remove python, perl, lua, rubyJohn Schmidt2014-04-05
|
* Remove XimJohn Schmidt2014-04-05
|
* Remove clientserverJohn Schmidt2014-04-05
|
* Remove BalloonEvalJohn Schmidt2014-04-05
|
* Remove HPUX and Vim 5.x compatible digraphsJohn Schmidt2014-04-05
|
* Remove SniFFJohn Schmidt2014-04-05
|
* Remove Amiga stuffJohn Schmidt2014-04-05
|
* Remove netbeans and sun workshopJohn Schmidt2014-04-05
|
* remove reference to BROKEN_TOUPPERaph2014-04-04
|
* remove pchar from macros.haph2014-04-04
|
* remove MB_{IS,TO}{UPPER,LOWER}aph2014-04-04
|
* remove DO_AUTOCHDIRaph2014-04-04
|
* Remove unused defineMarkus Breitenberger2014-04-04
|
* Removed not defined prototypes in os_unix.hStefan Hoffmann2014-04-04
| | | | | | | | | | | | | * reset_signals, vim_handle_signal: signal handling was rewritten, not defined anywhere * related to x clipboard handling, not defined anywhere: * {setup,start,stop,clear}_xterm_clip * stop_xterm_trace * clip_xterm_{own_selection,lose_selection,request_selection,set_selection} * related to XSMP (x session management protocol): * xsmp_{handle_requests,init,close}
* vim-patch:7.4.170oni-link2014-04-04
| | | | | | | Problem: Some help tags don't work with ":help". (Tim Chase) Solution: Add exceptions. https://code.google.com/p/vim/source/detail?r=8122eab8fcdbbdaac62dfbf7c6458cb3e6f46b04
* Possible string literals that have to be replacedWilberto Morales2014-04-04
|
* Try to find all other instances of vimrc and gvimrc and prefix them with nWilberto Morales2014-04-04
|
* Extract memory.c from misc2.cJohn Schmidt2014-04-04
|
* vim-patch:7.4.169Keerthan Jaic2014-04-04
| | | | | | | Problem: ":sleep" puts cursor in the wrong column. (Liang Li) Solution: Add the window offset. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=4e3a9dd25d428e7c08ed401afc244972e27e08e6