This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:summer2015:data:projects:dll0 [2015/06/21 14:42] – [list operation status codes] wedge | haas:summer2015:data:projects:dll0 [2015/06/27 20:30] (current) – [list library] wedge | ||
---|---|---|---|
Line 43: | Line 43: | ||
Node *last; | Node *last; | ||
}; | }; | ||
- | typedef struct list List; // because we deserve nice things | ||
code_t | code_t | ||
Line 79: | Line 78: | ||
# | # | ||
# | # | ||
- | # | + | # |
</ | </ | ||
Line 95: | Line 94: | ||
* **DLL_DEFAULT_FAIL** - default state of unimplemented functions (default error) | * **DLL_DEFAULT_FAIL** - default state of unimplemented functions (default error) | ||
* **DLL_ERROR** - some error occurred | * **DLL_ERROR** - some error occurred | ||
+ | * **DLL_INVALID** - invalid use (passing a NULL pointer) | ||
For example, in the case of " | For example, in the case of " | ||
Line 142: | Line 142: | ||
To assist you in verifying a correct implementation, | To assist you in verifying a correct implementation, | ||
- | ====node library==== | ||
- | Here is what you should get for node: | ||
- | |||
- | <cli> | ||
- | lab46: | ||
- | ==================================================== | ||
- | = Verifying Doubly-Linked Node Functionality | ||
- | ==================================================== | ||
- | [mknode] Total: | ||
- | [cpnode] Total: | ||
- | [rmnode] Total: | ||
- | ==================================================== | ||
- | | ||
- | ==================================================== | ||
- | lab46: | ||
- | </ | ||
====list library==== | ====list library==== | ||
Line 167: | Line 151: | ||
= 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: |