aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lib
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-07-17 00:32:07 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-07-17 00:32:07 -0300
commitaa9cb48bf08af14068178619414590254b263882 (patch)
treeb555f3a48c08862c07ef7518a8ba6c8fa58c1aee /src/nvim/lib
parent9d8d2b7fa83fd69d1d616728c505a41acf8fedbb (diff)
downloadrneovim-aa9cb48bf08af14068178619414590254b263882.tar.gz
rneovim-aa9cb48bf08af14068178619414590254b263882.tar.bz2
rneovim-aa9cb48bf08af14068178619414590254b263882.zip
job: Replace by a better process abstraction layer
- New libuv/pty process abstraction with simplified API and no globals. - Remove nvim/os/job*. Jobs are now a concept that apply only to programs spawned by vimscript job* functions. - Refactor shell.c/channel.c to use the new module, which brings a number of advantages: - Simplified API, less code - No slots in the user job table are used - Not possible to acidentally receive data from vimscript - Implement job table in eval.c, which is now a hash table with unilimited job slots and unique job ids.
Diffstat (limited to 'src/nvim/lib')
-rw-r--r--src/nvim/lib/klist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lib/klist.h b/src/nvim/lib/klist.h
index 10d6846133..1280a927e8 100644
--- a/src/nvim/lib/klist.h
+++ b/src/nvim/lib/klist.h
@@ -136,6 +136,6 @@
// `break` statement is executed before the next iteration.
#define kl_iter(name, kl, p) kl_iter_at(name, kl, p, NULL)
#define kl_iter_at(name, kl, p, h) \
- for (kl1_##name *p = h ? h : kl->head; p != kl->tail; p = p->next)
+ for (kl1_##name **p = h ? h : &kl->head; *p != kl->tail; p = &(*p)->next)
#endif