]> git.tuebingen.mpg.de Git - paraslash.git/commit
string: Clean up for_each_line() and related functions.
authorAndre Noll <maan@systemlinux.org>
Mon, 25 Mar 2013 16:10:28 +0000 (16:10 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 2 May 2013 17:56:09 +0000 (19:56 +0200)
commit23b121a85984baa9252f4b4c0b8c4f186e394bb7
tree65a240b9dc2cfbe3d2fbdaccaef7119a27f4669b
parent6256ed835dc5ced1fb4c75ed91fb4e68fbf436fd
string: Clean up for_each_line() and related functions.

While for_each_complete_line() is a static function, there are two
public functions, for_each_line() and for_each_line_ro(), which are
implemented as simple wrappers for the static one. The only difference
between the two is that for_each_line_ro() sets the FELF_READ_ONLY
bit while for_each_line() does not.

Since we are about to add another bit of information soon, let's make
the bitmap and the static function public, and remove the two wrappers.
All callers are changed to pass an additional "unsigned flags" to
indicate whether they want the read-only behavior.

Documentation is updated accordingly.
gui.c
mood.c
playlist.c
string.c
string.h