Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9958 - Avoid repeating of complicated condition

Attached to Project: Rockbox
Opened by Alexander Levin (fml2) - Thursday, 26 February 2009, 21:50 GMT+2
Last edited by Thomas Martitz (kugel.) - Thursday, 26 February 2009, 22:26 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Version 3.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

The patch avoid multiple use of the same condition in the code. Instead, a symbol with meaningful name is introduced and used. This avoid code duplication and improves code readability.
   multidef.patch (1.2 KiB)
 apps/plugins/chessbox/chessbox.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

This task depends upon

Closed by  Thomas Martitz (kugel.)
Thursday, 26 February 2009, 22:26 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Committed in r20117. Thanks

Loading...