~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/lib/kvec.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                (v).items[(v).size++] = (x);                                                                            \
78
78
        } while (0)
79
79
 
80
 
#define kv_pushp(type, v) (((v).size == (v).capacity)?                                                  \
 
80
#define kv_pushp(type, v) ((((v).size == (v).capacity)?                                                 \
81
81
                                                   ((v).capacity = ((v).capacity? (v).capacity<<1 : 8),                         \
82
82
                                                        (v).items = (type*)xrealloc((v).items, sizeof(type) * (v).capacity), 0) \
83
 
                                                   : 0), ((v).items + ((v).size++))
 
83
                                                   : 0), ((v).items + ((v).size++)))
84
84
 
85
85
#define kv_a(type, v, i) (((v).capacity <= (size_t)(i)? \
86
86
                                                  ((v).capacity = (v).size = (i) + 1, kv_roundup32((v).capacity), \