]> git.tuebingen.mpg.de Git - paraslash.git/commit
Simplify i9e_line_handler.
authorAndre Noll <maan@systemlinux.org>
Tue, 2 Apr 2013 14:30:06 +0000 (14:30 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 8 Jun 2013 12:31:01 +0000 (14:31 +0200)
commitf8931d4607fdf8cb98761b9814d068256d2925a3
tree03def1aa808d4162352042dd96aae604a629ed4c
parentf99dbea033c521a886b99405f5e9efc80e2c32e1
Simplify i9e_line_handler.

The line handlers of all three users of the i9e API (play, client
and audioc) return immediately if the passed line is NULL or the
empty string. Hence we may call the line handler only if there is a
non-empty line to dispatch.

Moving the check for a non-empty line to generic i9e code simplifies
the three line handlers a bit and avoids code duplication.
audioc.c
client.c
interactive.c
play.c