mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 09:08:39 +08:00
2010-04-22 Alin Rus <alin.codejunkie@gmail.com>
* user/chain.t: Fixed the example from PR 1504.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-04-22 Alin Rus <alin.codejunkie@gmail.com>
|
||||
|
||||
* user/chain.t: Fixed the example from PR 1504.
|
||||
|
||||
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* user/conf.t: CONFIGURE_DISABLE_CLASSIC_NOTEPADS is typo of
|
||||
|
||||
+3
-2
@@ -180,14 +180,15 @@ void foobar (const char* match,
|
||||
while (!@value{DIRPREFIX}chain_is_tail (chain, node))
|
||||
@{
|
||||
bar = (foo*) node;
|
||||
rtems_chain_node* next_node = node->next;
|
||||
|
||||
if (strcmp (match, bar->data) == 0)
|
||||
@{
|
||||
@value{DIRPREFIX}chain_node* next_node = node->next;
|
||||
@value{DIRPREFIX}chain_extract (node);
|
||||
@value{DIRPREFIX}chain_append (out, node);
|
||||
node = next_node;
|
||||
@}
|
||||
|
||||
node = next_node;
|
||||
@}
|
||||
@}
|
||||
@end example
|
||||
|
||||
Reference in New Issue
Block a user