Buflib: Clarification about invalid handles
commit5296af838c39b8b7c4b00a3c896345f9e0719dcf
authorThomas Martitz <kugel@rockbox.org>
Wed, 7 Sep 2011 23:16:29 +0000 (7 23:16 +0000)
committerThomas Martitz <kugel@rockbox.org>
Wed, 7 Sep 2011 23:16:29 +0000 (7 23:16 +0000)
treee3e31a974f23bd4cd810c00b892c1eabaec4c676
parent6a989b8d4dec4750ad474598bd52897381d2f3cb
Buflib: Clarification about invalid handles

* Enhance allocation function comments to better state the return value and what an invalid value is
* Change clients to check for "< 0" instead of "<= 0" or "== 0"
* Return -1 or -2 depending on the exact failure in buflib_alloc_ex.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30469 a1c6a512-1295-4272-9138-f99709370657
apps/filetypes.c
apps/plugins/pictureflow/pictureflow.c
apps/scrobbler.c
firmware/buflib.c
firmware/include/buflib.h