]> git.tuebingen.mpg.de Git - paraslash.git/commit
string: Replace the for_each_line_modes enum by a bitmap.
authorAndre Noll <maan@systemlinux.org>
Mon, 25 Mar 2013 15:36:10 +0000 (15:36 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 2 May 2013 17:56:09 +0000 (19:56 +0200)
commit6256ed835dc5ced1fb4c75ed91fb4e68fbf436fd
tree389c1de683656e0ee34f6299680e4df4405f6076
parent14e6890c756529c73a95cf1fb3648a6a7c3344d7
string: Replace the for_each_line_modes enum by a bitmap.

Currently we pass an "enum for_each_line_modes" as the first argument
to for_each_complete_line(). The parameter is effectively a boolean
since the enumeration defines only two possible values.

For the upcoming discard feature of for_each_line_modes() we'll need
to pass another bit of information, so this patch changes the type of
the first argument to for_each_complete_line() to unsigned and treats
it as a bit array. The only bit defined so far is LINE_MODE_RO, with
unchanged semantics.

The two callers are updated to reflect this change.
string.c