From aa9cb48bf08af14068178619414590254b263882 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 17 Jul 2015 00:32:07 -0300 Subject: 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. --- src/nvim/lib/klist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/lib') 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 -- cgit