trick/trick_source
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
..
codegen/Interface_Code_Gen Fix c++20 flag for LLVM 10 (#1520) 2023-06-12 14:36:21 -05:00
data_products In DPV_textbuffer.cpp, close the opened file on read failure, so we d… (#1572) 2023-09-21 10:15:53 -05:00
er7_utils Destructor restart fixes 2022-09-01 09:37:15 -05:00
java 1504 trick run summary enhancement for memory used (#1545) 2023-08-24 13:51:19 -05:00
sim_services checksum enhancement for -d option (#1579) 2023-10-05 10:56:02 -05:00
trick_swig checksum enhancement for -d option (#1579) 2023-10-05 10:56:02 -05:00
trick_utils Fix a variety of bugs found in dllist.c while addressing Issue #1559. (#1577) 2023-10-05 13:33:38 -05:00
web Bump debug in /trick_source/web/dashboard (#1576) 2023-10-05 10:41:08 -05:00
.gitignore Add a way to disable sim objects (#1364) 2022-11-15 09:16:08 -06:00