INI and collection use
if (condition) { /* do some work */ } else { /* do some other work */ }
While the coding guide suggests use of:
Fields changed
summary: Codinbg style deviation in ding-libs => Coding style deviation in ding-libs
owner: somebody => okos
rhbz: => 0
I reviewed the code of the ding libs. There are several hundreds of the cases where this rule of the style is violated. I tried fixing couple places and find it lass readable. For example the following code seems more readable:
if (!data) { TRACE_ERROR_STRING("Invalid argument", ""); error = EINVAL; } else { *data = (struct simplebuffer *)calloc(1, sizeof(struct simplebuffer)); if (*data == NULL) { TRACE_ERROR_STRING("Failed to allocate memory", ""); error = ENOMEM; } else error = EOK; }
than this one
Since it is not a critical aspect I lean to closing this ticket as wontfix.
resolution: => wontfix selected: => status: new => closed
Metadata Update from @dpal: - Issue assigned to okos - Issue set to the milestone: Tools 1.0