URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
struct node {
|
struct node {
|
struct node *next;
|
struct node *next;
|
int value;
|
int value;
|
};
|
};
|
|
|
struct node *current_node, global_list;
|
struct node *current_node, global_list;
|
|
|
void
|
void
|
bar (void)
|
bar (void)
|
{
|
{
|
struct node *node, *next;
|
struct node *node, *next;
|
|
|
node = current_node;
|
node = current_node;
|
next = node->next;
|
next = node->next;
|
if (node != &global_list)
|
if (node != &global_list)
|
current_node = next;
|
current_node = next;
|
else
|
else
|
{
|
{
|
node = global_list.next;
|
node = global_list.next;
|
global_list.value = node->value;
|
global_list.value = node->value;
|
global_list.next = node->next;
|
global_list.next = node->next;
|
}
|
}
|
foo (node);
|
foo (node);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.