Commit Graph

1189 Commits

Author SHA1 Message Date
Stefan Hoffmann
f02a725e22 update customdoxygen.css for doxygen 1.8.7
some icon images in the html are replaced with css.
2014-06-19 11:53:57 +02:00
Stefan Hoffmann
c0a6c04f08 update theme to match neovim.org 2014-06-19 11:53:57 +02:00
Stefan Hoffmann
e26220d342 add default doxygen 1.8.6 theme files 2014-06-19 11:53:57 +02:00
Stefan Hoffmann
e9577eeaeb move documentation output to build/doxygen 2014-06-19 11:53:57 +02:00
Will Stamper
3141c02c02 coverity/68215: removed failed variable + dead code from f_readfile #860 2014-06-18 23:57:05 -04:00
Nikolay Orlyuk
ec72b7adc7 spatch to drop check after alloc/lalloc/xmalloc #690 2014-06-18 19:21:01 -04:00
John Szakmeister
f870982634 Merge pull request #845 'Testdir and top-level Makefile improvements' 2014-06-18 16:21:45 -04:00
ZyX
1302702586 Make indentation consistent: use 2-space indent always 2014-06-18 16:21:12 -04:00
ZyX
2653cebcd7 Use MAKEOVERRIDES to pass SCRIPTS/TESTNUM arguments for make test 2014-06-18 16:21:12 -04:00
ZyX
24a08b32ab test1.in is not a test and it must be run always
test1.in generates files like small.vim, tiny.vim, mbyte.vim, mzscheme.vim,
lua.vim which are then used by other tests. So it must be run always.
2014-06-18 16:21:11 -04:00
ZyX
b0641510b6 Avoid ever creating .deps directory
Thanks to @jszakmeister this uses make own features.
2014-06-18 16:21:11 -04:00
Thiago de Arruda
090870ca04 Merge PR #853 2014-06-18 12:16:53 -03:00
Thiago de Arruda
a7d027c8ab api: Add helper macros for dealing with API type casts 2014-06-18 11:36:08 -03:00
Thiago de Arruda
caf2fb8480 api: Enable usage of Arrays and Dictionaries as [k]vectors
- Rename a/n/m to items/size/capactity in kvec.h
- Add capactity field to Arrays/Dictionaries
2014-06-18 11:36:08 -03:00
Thiago de Arruda
20fda27cda api: Change type of event data to Object from typval_T 2014-06-18 11:36:07 -03:00
Thiago de Arruda
5aca2a6cd8 api: Rename find_{buffer,window,tabpage}
They were renamed to find_{buffer,window,tabpage}_by_handle to avoid conflicts
with existing functions of the same name.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
72907c34f4 build: increase timeout for run-api-tests.exp 2014-06-18 11:36:07 -03:00
Thiago de Arruda
796ea333d4 build: Fix error in dispatch generator for functions with channel_id 2014-06-18 11:36:07 -03:00
Thiago de Arruda
0621a6eaa5 events: Refactor how events are queued for processing
To make it possible reuse `event_poll` recursively and in other blocking
function calls, this changes how deferred/immediate events are processed:

- There are two queues in event.c, one for immediate events and another for
  deferred events. The queue used when pushing/processing events is determined
  with boolean arguments passed to `event_push`/`event_process` respectively.
- Events pushed to the immediate queue are processed inside `event_poll` but
  after the `uv_run` call. This is required because libuv event loop does not
  support recursion, and processing events may result in other `event_poll`
  calls.
- Events pushed to the deferred queue are processed later by calling
  `event_process(true)`. This is required to "trick" vim into treating all
  asynchronous events as special keypresses, which is the least obtrusive
  way of introducing asynchronicity into the editor.
- RStream instances will now forward the `defer` flag to the `event_push` call.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
05bf7808e0 events: Refactor event_poll to use stack-allocated timer handles 2014-06-18 11:36:07 -03:00
Thiago de Arruda
4cb5ce3c52 channel: Make channel_{un}subscribe abort the program for invalid ids
These functions will never be called directly by the user so bugs are the only
reason for passing invalid channel ids. Instead of returning silently we abort
to improve bug detection.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
abc423983d job: Refactor job_write to receive WBuffer instances.
This was done to give more control over memory management to job_write callers.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
287967a2c0 job: Add defer flag and setter method
This is has the same effect as the RStream 'defer' flag, but also works for the
job's exit event.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
71d9899f3c job: Refactor to use pointers instead of ids
'job_start' returns the id as an out paramter, and the 'job_find' function is
now used by eval.c to translate job ids into pointers.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
05fd154ede rstream: Implement the rstream_set_defer function
This function will be used to temporarily change the `defer` flag on rstream
instances.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
1843f0c2c6 rstream: Rename RStream async flag to defer
The name `async` was not appropriate to describe the behavior enabled by the
flag.
2014-06-18 11:36:07 -03:00
Thiago de Arruda
ac5fb407e4 wstream: Refactor wstream_new_buffer/wstream_write
- Removed 'copy' parameter from `wstream_new_buffer`. Callers simply pass a
  copy of the buffer if required.
- Added a callback parameter, which is used to notify callers when the data is
  successfully written. The callback is also used to free the buffer(if
  required) and is compatible with `free` from the standard library.
2014-06-18 11:36:04 -03:00
Thiago de Arruda
0c764fb1a4 wstream: Change wstream_write failure behavior
Before this change, any write that could cause a WStream instance to use more
than `maxmem` would fail, which is not acceptable when writing big chunks of
data. (This could happen when returning contents from a big buffer through the
API, for example).

Writes of any size are now allowed, but before we check if the currently used
memory doesn't break the limit. This should be enough to prevent us from
stacking data when talking to a locked process.
2014-06-17 12:12:29 -03:00
Thiago de Arruda
063d8a5773 msgpack_rpc: Deal with deserialization failures
There seems to be no way to deal with failures when calling
`msgpack_unpacker_next`, so this reimplements that function as
`msgpack_rpc_unpack`, which has an additional result for detecting failures.

On top of that, we make use of the new function to properly return msgpack-rpc
errors when something bad happens.
2014-06-17 12:12:29 -03:00
Justin M. Keyes
d199d18159 Merge #787 'removal of redundant OOM error handling' 2014-06-16 20:27:25 -04:00
Felipe Oliveira Carvalho
e85598e5a9 Remove unnecessary comments and unnecessary return 2014-06-16 01:40:29 -03:00
Felipe Oliveira Carvalho
f099809e67 Refator return logic in ses_put_fname() 2014-06-16 01:40:29 -03:00
Felipe Oliveira Carvalho
238fa72884 No OOM for list_alloc() 2014-06-16 01:40:28 -03:00
Felipe Oliveira Carvalho
3cb3c20b74 Fix some "out of memory" comments and few cosmetics 2014-06-16 01:40:28 -03:00
Felipe Oliveira Carvalho
f4002c97dc No OOM in ExpandOldSetting() 2014-06-16 01:40:28 -03:00
Felipe Oliveira Carvalho
b1595e74f2 No OOM in reverse_text() 2014-06-16 01:40:27 -03:00
Felipe Oliveira Carvalho
85100bb01d No OOM in concat_str() (few remaining cases)
Also fixed the duplicated declaration (path.c and strings.c)
2014-06-16 01:40:27 -03:00
Felipe Oliveira Carvalho
3a9a76c996 No OOM in vim_strsave_escape_csi() 2014-06-16 01:36:32 -03:00
Felipe Oliveira Carvalho
a26a1697c7 No OOM in home_replace_save() 2014-06-16 01:36:32 -03:00
Felipe Oliveira Carvalho
cca66742eb No OOM in vim_strsave_fnameescape() 2014-06-16 01:36:31 -03:00
Felipe Oliveira Carvalho
81ca5ff126 No OOM in enc_canonize()
Fix a `return FAIL` that should be `return NULL` in `enc_locale()`
2014-06-16 01:36:31 -03:00
Felipe Oliveira Carvalho
8234f2839f No OOM in vim_strsave_escaped[_ext]() 2014-06-16 01:36:31 -03:00
Felipe Oliveira Carvalho
f7e64c3c5f No OOM in vim_strnsave_up()
And some cleanup in strsave_up()
2014-06-16 01:36:30 -03:00
Felipe Oliveira Carvalho
d0fe14fdfe No OOM in popup_mode_name() 2014-06-16 01:31:37 -03:00
Felipe Oliveira Carvalho
4667fbcbe7 au_get_grouparg() can't fail, remove error handling 2014-06-16 01:31:37 -03:00
Felipe Oliveira Carvalho
3d10e2e0cb No OOM in msg_show_console_dialog() 2014-06-16 01:31:37 -03:00
Felipe Oliveira Carvalho
3b648b0a7b do_map() won't return 4 (OOM) anymore 2014-06-16 01:31:37 -03:00
Felipe Oliveira Carvalho
0b849e775c No OOM in ExpandGeneric() 2014-06-16 01:31:37 -03:00
Felipe Oliveira Carvalho
ab016d3dbd No OOM in expand_shellcmd() 2014-06-16 01:31:36 -03:00
Felipe Oliveira Carvalho
9e7d06da41 No OOM in autoload_name() 2014-06-16 01:31:36 -03:00