PSI sics-cvs-psi-2006
This commit is contained in:
10
lld.c
10
lld.c
@@ -595,6 +595,11 @@ int LLDnodePtr2First( int List )
|
||||
|
||||
ListControl[ List ].current = ListControl[ List ].first->next ;
|
||||
|
||||
if(ListControl[List].first->next == NULL)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return NULL != ListControl[ List ].first->next->next ;
|
||||
}
|
||||
|
||||
@@ -647,6 +652,11 @@ long LLDnodeLong( int List )
|
||||
return *((long *) &ListControl[ List ].current->data );
|
||||
}
|
||||
|
||||
float LLDnodeFloat( int List )
|
||||
{
|
||||
return *((float *) &ListControl[ List ].current->data );
|
||||
}
|
||||
|
||||
void * LLDnodePtr( int List )
|
||||
{
|
||||
return *((void **) &ListControl[ List ].current->data );
|
||||
|
||||
Reference in New Issue
Block a user