[RFC] Add matchaddpos()-related vim patches. [vim-patch: 7.4.330, 7.4.334, 7.4.343, 7.4.344, 7.4.362]

Adds patches 7.4.330, 334, 343, 344 and 362.
On September 4, 2014 12:55:28 AM GMT+03:00, Scott Prager <notifications@github.com> wrote:
>> @@ -5236,15 +5238,109 @@ int match_add(win_T *wp, char_u *grp, char_u
>*pat, int prio, int id)
>>    }
>>  
>>    /* Build new match. */
>> -  m = xmalloc(sizeof(matchitem_T));
>> +  m = xmallocz(sizeof(matchitem_T));
>
>I was wrong about `xmallocz`--it doesn't initialize the memory to zero
>and we don't seem to have an equivalent. As long as all the members get
>initialized, it shouldn't be an issue.
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/neovim/neovim/pull/1107/files#r17079257

? If you want a zero-initialized memory there is xcalloc wrapper. I use it almost always in my VimL parser.