Fix some "out of memory" comments and few cosmetics

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-31 00:49:17 -03:00
parent f4002c97dc
commit 3cb3c20b74
5 changed files with 12 additions and 15 deletions

View File

@@ -9,6 +9,7 @@
#include "nvim/vim.h"
#include "nvim/charset.h"
#include "nvim/farsi.h"
#include "nvim/func_attr.h"
#include "nvim/main.h"
#include "nvim/mbyte.h"
#include "nvim/memline.h"
@@ -321,12 +322,12 @@ void trans_characters(char_u *buf, int bufsize)
}
/// Translate a string into allocated memory, replacing special chars with
/// printable chars. Returns NULL when out of memory.
/// printable chars.
///
/// @param s
///
/// @return translated string
char_u *transstr(char_u *s)
char_u *transstr(char_u *s) FUNC_ATTR_NONNULL_RET
{
char_u *res;
char_u *p;