Nicolas Hillegeer
eea98c4d3b
garray: refactor and optimize ga_concat
...
I've checked all uses of ga_concat in the codebase:
- ex_cmds2.c
- ex_getln.c
- eval.c
- message.c
- regexp-nfa.c
- term.c
- spell.c
None of them concats the garray with itself. This makes it safe to use the
faster memcpy() instead of memmove(). This change was also documented.
2014-04-29 09:29:10 -03:00
Nicolas Hillegeer
767f0fae0b
garray: make parameter of ga_concat_strings const
2014-04-29 09:29:10 -03:00
Nicolas Hillegeer
104000eff6
garray: implement ga_concat_strings_sep
...
A generalized version of ga_concat_strings that can handle any separator.
Reimplement ga_concat_strings on top of it.
2014-04-29 09:29:10 -03:00
Marco Hinz
b8520b8ee4
Fix garray.* according to -Wconversion
2014-04-28 07:58:10 -03:00
Felipe Oliveira Carvalho
f298be9fe1
Add FUNC_ATTR_NONNULL_RET to some functions
2014-04-24 10:31:31 -03:00
Felipe Oliveira Carvalho
f6b0e335e1
Remove OOM error handling code after ga_grow() calls
2014-04-11 12:57:59 -03:00
John Schmidt
5d30654512
Rename ga_init2() to ga_init()
2014-03-31 14:42:11 -03:00
John Schmidt
e02790cad4
Inline ga_init()
2014-03-31 14:42:11 -03:00
John Schmidt
44e40b02cf
Move remove_duplicates to garray.c
2014-03-29 13:29:53 -03:00
David Z. Chen
baab238271
Issue #311 - Clean up blowfish.c/h, charset.c/h, diff.c/h, digraph.c/h, garray.c/h, hashtab.c/h, popupmnu.c/h, sha256.c/h, version.c/h. Update uncrustify to move logical operators to the beginning of the line when splitting. Also, clean up arabic.c/h and farsi.c/h
2014-03-16 12:00:41 -03:00
Felipe Oliveira Carvalho
3005681a02
Move garray_T from structs.h to garray.h
2014-03-07 08:02:38 -03:00
Nicolas Pierron
d9283c4927
Remove __ARGS macro. Close #205
...
This is a squash of all commits sent to #81 .
- Remove unused undef of __ARGS.
- Fix mch_rename declaration.
- Follow changes related to moved & extracted files.
- Properly indent function declarations of getchar.h and quickfix.c.
2014-03-02 14:19:59 -03:00
Felipe Oliveira Carvalho
410f0a27c5
Extract garray.c from misc2.c
...
Start to split misc2.c in many other files (see #209 ).
2014-02-28 06:43:20 -03:00