This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:summer2015:data:projects:dll1 [2015/06/27 20:31] – [Errata] wedge | haas:summer2015:data:projects:dll1 [2015/06/27 20:39] (current) – [Project Overview] wedge | ||
---|---|---|---|
Line 31: | Line 31: | ||
< | < | ||
- | unsigned char | + | code_t |
- | unsigned char | + | code_t |
- | unsigned char | + | code_t |
- | unsigned char | + | code_t |
- | unsigned char | + | code_t |
- | unsigned char | + | code_t |
</ | </ | ||
Line 54: | Line 54: | ||
* **DLL_EMPTY** - result is an empty list (may or may not be in error) | * **DLL_EMPTY** - result is an empty list (may or may not be in error) | ||
* **DLL_DEFAULT_FAIL** - default state of unimplemented functions (default error) | * **DLL_DEFAULT_FAIL** - default state of unimplemented functions (default error) | ||
- | * **DLL_FAIL** - some error occurred | + | * **DLL_ERROR** - some error occurred |
+ | * **DLL_INVALID** - invalid list condition | ||
For example, in the case of " | For example, in the case of " | ||
- | * DLL_FAIL | + | * DLL_ERROR |
* DLL_MALLOC_FAIL (a problem has occurred when using malloc()) | * DLL_MALLOC_FAIL (a problem has occurred when using malloc()) | ||
* DLL_NULL (no memory allocated, so list cannot be anything but NULL) | * DLL_NULL (no memory allocated, so list cannot be anything but NULL) | ||
Line 100: | Line 101: | ||
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: | ||
- | </ | ||
- | |||
- | There were no changes required to the node library between dll0 and dll1, so once you achieved a working implementation, | ||
====list library==== | ====list library==== | ||
Here is what you should get for list: | Here is what you should get for list: |