Skip to content

Commit

Permalink
Changing 'return' to block statement, fixing a problem created while …
Browse files Browse the repository at this point in the history
…transforming inline function to macro
  • Loading branch information
lzsiga authored and djzort committed Jul 16, 2024
1 parent 120e777 commit 9dc2ca0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dbdcnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ struct llist_t{

#define llist_drop(ael) do{\
llist_t * el = ael;\
if(llist_empty(el)) return;\
el->left->right = el->right;\
el->right->left = el->left;\
llist_init(el);\
if(!llist_empty(el)) {\
el->left->right = el->right;\
el->right->left = el->left;\
llist_init(el);\
} \
}while(0)

// this is pointer to the left element in chain
Expand Down

0 comments on commit 9dc2ca0

Please sign in to comment.