"Completed" PA05
(aka don't want to spend anymore time on it) +- ArrayDataEngine.c +- IteratorUtility.c +- QueueUtility.c +- StackUtility.c
This commit is contained in:
parent
a9a217cc45
commit
770212bc8e
5 changed files with 75 additions and 45 deletions
|
|
@ -63,8 +63,8 @@ Dependencies: getItemAtIndex, getListSize
|
|||
*/
|
||||
bool peekTop( StateDataType *returnVal, const StackType stackData )
|
||||
{
|
||||
// return false (TEMP)
|
||||
return false;
|
||||
// return the getItemAtIndex success/failure
|
||||
return getItemAtIndex(returnVal, stackData, getListSize(stackData));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -81,8 +81,8 @@ Dependencies: removeItemAtIndex, getListSize
|
|||
*/
|
||||
bool popStack( StateDataType *returnVal, StackType *stackData )
|
||||
{
|
||||
// return false (TEMP)
|
||||
return false;
|
||||
// return function success/failure based on inputs
|
||||
return removeItemAtIndex(stackData, returnVal, getListSize(*stackData));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -98,6 +98,6 @@ Dependencies: insertItemAtIndex, getListSize
|
|||
*/
|
||||
bool pushStack( StackType *stackData, const StateDataType toBePushed )
|
||||
{
|
||||
// return false (TEMP)
|
||||
return false;
|
||||
// return function success/failure based on operation
|
||||
return insertItemAtIndex(stackData, toBePushed, getListSize(*stackData));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue