neovim/neovim — pull request #1497 by splinterofchaos (2014-11-19 20:34:15+00:00)
Title: [RFC] constify and func-attribute memory.c and strings.c

Not having `string.c` functions take `const` pointers really makes it annoying to write `const`-aware functions on top of them, which always makes me refrain from mentioning this in code reviews. As a bonus, I added some `FUNC_ATTR_*` stuff.

I used the standard C library convention: Take a `const` pointer, but return a non-`const` one. It's not safe, but the alternative would be to make `const` versions of each function.