This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2015:data:projects:dll0 [2015/04/02 12:57] – [List library unit tests] wedge | haas:spring2015:data:projects:dll0 [2015/04/04 22:59] (current) – [Errata] wedge | ||
---|---|---|---|
Line 13: | Line 13: | ||
* __revision 1__: looks like I forgot to include the node unit tests, here they are (20150331) | * __revision 1__: looks like I forgot to include the node unit tests, here they are (20150331) | ||
* there was a mild typo in the **inc/ | * there was a mild typo in the **inc/ | ||
+ | * the parameter to mknode() was incorrectly an int, it should be a char | ||
* updated unit-mklist to check for proper list return status codes | * updated unit-mklist to check for proper list return status codes | ||
+ | * updated unit-display to check for proper list return status codes | ||
+ | * __revision 2__: updated unit tests to support error condition status (20150402) | ||
+ | * unit-display had a typo (FIXED) | ||
+ | * unit-insert is now ready to go | ||
+ | * unit-append should also be good to go | ||
+ | * quieted compiler warnings for unit-cplist and unit-find (still need to finish) | ||
+ | * __revision 3__: updated more unit tests to support error condition status (20150403) | ||
+ | * unit-find is now operational and conformant to error condition status checking | ||
+ | * there was a bug with checking for a DLL_SUCCESS result, this resulted in fixes to: | ||
+ | * unit-display | ||
+ | * unit-insert | ||
+ | * unit-append | ||
+ | * I've disabled the cplist unit test and verify-list does not try to run it (so you won't be impeded by its current unfinished state) | ||
+ | * new options in base Makefile: | ||
+ | * " | ||
+ | * " | ||
+ | * various backend infrastructure tweaks (because I deserve nice things) | ||
+ | * __revision 4__: unit-cplist is now fully operational (20150404) | ||
+ | * also did some house cleaning in list unit Makefile | ||
=====Objective===== | =====Objective===== | ||
In this project, we take our first opportunity to undergo a complete code re-write of linked list functionality, | In this project, we take our first opportunity to undergo a complete code re-write of linked list functionality, | ||
+ | =====Procedure to Obtain dll0===== | ||
+ | As this is a rewrite, dll0 is not based on any of the code you have written up to this point. As such, the transition process is slightly different: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | The " | ||
+ | |||
+ | But when you " | ||
+ | |||
+ | Once you run " | ||
=====Project Overview===== | =====Project Overview===== | ||
Line 35: | Line 68: | ||
typedef struct node Node; | typedef struct node Node; | ||
- | Node *mknode(int ); // allocate new node containing value | + | Node *mknode(char |
Node *cpnode(Node *); // duplicate node | Node *cpnode(Node *); // duplicate node | ||
Node *rmnode(Node *); // deallocate node | Node *rmnode(Node *); // deallocate node | ||
Line 173: | Line 206: | ||
= Verifying Doubly-Linked List Functionality | = Verifying Doubly-Linked List Functionality | ||
==================================================== | ==================================================== | ||
- | [mklist] Total: | + | [mklist] Total: |
- | [cplist] Total: | + | [cplist] Total: |
- | [append] Total: | + | [append] Total: |
- | [insert] Total: | + | [insert] Total: |
- | | + | |
- | [find] Total: | + | [find] Total: |
==================================================== | ==================================================== | ||
- | | + | |
==================================================== | ==================================================== | ||
lab46: | lab46: |