trick/trick_source/trick_utils
jmpenn 1d0e324c6f
Fix a variety of bugs found in dllist.c while addressing Issue #1559. (#1577)
* Fix a variety of bugs found in dllist.c while addressing Issue #1559.

* Added More descriptive error messages.
* Wrote google-test based unit tests for the DLL List library.
* Deleted old, incomplete test program.
* Added new function DLL_ListContainsPos which determines whether the given list contains the node at the given pos.
* DLLFind bug: Added check to determine whether a compare function has been specified, and emit an error message if it hasn’t.
* DLL_FindIndex bug: Corrected bounds checking.
* DLL_GetAt bug: Added check to ensure that the specified pos is actually in the given list.
* DLL_SetAt bug: Added check to ensure that the specified pos is actually in the given list.
* DLL_RemoveAt: corrected logic mistake in NULL ptr check. Added check to ensure that the specified pos is actually in the given list.
* DLL_InsertBefore bug: element count not correctly updated.
* DLL_InsertAfter: next and prev ptrs not correctly updated, which corrupted the list.
* DLL_GetNext bug: logic error in NULL ptr checks. Added check to ensure that the specified pos is actually in the given list.
* DLL_GetPrev bug: logic error in NULL ptr checks. Added check to ensure that the specified pos is actually in the given list.
* DLL_AddHead: Fixed NULL check logic error.
* DLL_AddTail: Fixed NULL check logic error.

* Address review comments, remove extraneous make target.

* Change false to 0 in dllist.c
2023-10-05 13:33:38 -05:00
..
comm Variable Server byteswapping crashes the sim #1513 (#1514) 2023-06-01 13:20:14 -05:00
compareFloatingPoint Update README.md 2023-03-03 13:30:52 -06:00
connection_handlers Add more Variable Server unit and integration tests, clean up and clarify naming 2023-06-26 12:23:58 -05:00
interpolator Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
math Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
reqs Cleaning up once include variables and copyright cleanup. 2015-03-23 16:03:14 -05:00
SAIntegrator Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
shm Replace sprintf with snprintf in all of Trick source. #1384 (#1392) 2022-11-15 15:00:05 -06:00
trick_adt Fix a variety of bugs found in dllist.c while addressing Issue #1559. (#1577) 2023-10-05 13:33:38 -05:00
unicode Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
units Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
var_binary_parser Add more Variable Server unit and integration tests, clean up and clarify naming 2023-06-26 12:23:58 -05:00
CMakeLists.txt Refactor and test Variable Server. 2023-06-26 12:23:58 -05:00