Add FUNC_ATTR_NONNULL_RET to some functions

This commit is contained in:
Felipe Oliveira Carvalho
2014-04-21 20:06:15 -03:00
committed by Thiago de Arruda
parent 244ca83be5
commit f298be9fe1
2 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
#ifndef NEOVIM_GARRAY_H
#define NEOVIM_GARRAY_H
#include "func_attr.h"
/// Structure used for growing arrays.
/// This is used to store information that only grows, is deleted all at
/// once, and needs to be accessed by index. See ga_clear() and ga_grow().
@@ -18,7 +20,7 @@ void ga_clear(garray_T *gap);
void ga_clear_strings(garray_T *gap);
void ga_init(garray_T *gap, int itemsize, int growsize);
void ga_grow(garray_T *gap, int n);
char_u *ga_concat_strings(garray_T *gap);
char_u *ga_concat_strings(garray_T *gap) FUNC_ATTR_NONNULL_RET;
void ga_remove_duplicate_strings(garray_T *gap);
void ga_concat(garray_T *gap, char_u *s);
void ga_append(garray_T *gap, int c);