compile-i386: make use of expression_list_size()
PATCH 1/1 compile-i386: make use of expression_list_size()
Instead of doing it my hand, there is the expression_list_size() API we can use here.
Signed-off-by Martin Kepplinger <[email protected]>
---
This only builds. I have *not* tested it in any way though!!!
compile-i386.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
compile-i386.c +0 -4
@@ -997,11 +997,7 @@ static void sort_array(struct expression *expr)struct expression *entry, **list;unsigned int elem, sorted, i; - elem =0 ; - FOR_EACH_PTR(expr->expr_list, entry) { - elem++; - }END_FOR_EACH_PTR (entry);
Quoted 5 lines · Martin Kepplinger
Instead of doing it my hand, there is the
expression_list_size()API we can use here.Signed-off-by Martin Kepplinger <[email protected]>---
Christopher Li
maintainerQuoted 4 lines · Martin Kepplinger
Instead of doing it my hand, there is the
expression_list_size()API we can use here.Signed-off-by Martin Kepplinger <[email protected]>
Looks good. I will apply it.
If you are feeling brave, you can try using the generic sort_list API to sort it ;-)
Chris