Skip to content

Commit

Permalink
Created pre-release build 1.0.4.21
Browse files Browse the repository at this point in the history
+ FB_Array_List now increases capacity by 50% instead of doubling.
+ Fixed issue were clearing the Set or Map and then attempting to access the I_Immutable_List interface caused invalid pointer to be dereferenced.
+ Fixed issue were the remove method for FB_List and FB_Array_List only removed the first item instead of searching for an item and then removing it.
+ Added check for failed memory allocation for functions and function blocks.
+ Added error reporting for functions.
+ Improved error reporting for all collection function blocks.
+ Added enum for error codes (E_ERROR_CODE).
  • Loading branch information
fisothemes committed Sep 10, 2023
1 parent 671a84d commit 03b2874
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Here are some of the features of Dynamic Collections:

* 👍 **FB_Tree_Set** - A collection that contains no duplicate items implemented using an iterative AVL Tree. Keys and values can be retrieved as an immutable list (whose base is FB_Array_List) via 4 traversal methods; Inorder, Preorder, Postorder and Level Order. Can store multiple types. Implements `I_Tree_Set` which inherits `I_Set`.

* 👍 **FB_Tree_Multiset** - A collection similar to a set except it allows for duplicate items implemented using an iterative AVL Tree. Keys and values can be retrieved as an immutable list (whose base is FB_Array_List) via 4 traversal methods; Inorder, Preorder, Postorder and Level Order. Can store multiple types. Implements `I_Tree_Set` which inherits `I_Set`.

* 👍 **FB_Queue** - A collection whose access/mutation of items is first-in, first-out whose base is FB_List. Can store multiple types. Implements `I_Queue`.

* 👍 **FB_Stack** - A collection whose access/mutation of items is last-in, first-out whose base is FB_List. Can store multiple types. Implements `I_Stack`.
Expand Down
Binary file added builds/1.0.4.21/TcDynCollections.library
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ END_VAR]]></Declaration>
<Implementation>
<ST><![CDATA[F_GetVersion.iMajor := 1;
F_GetVersion.iMinor := 0;
F_GetVersion.iBuild := 3;
F_GetVersion.iRevision := 20;
F_GetVersion.iBuild := 4;
F_GetVersion.iRevision := 21;
]]></ST>
</Implementation>
</POU>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Title>TwinCat Dynamic Collections</Title>
<Author>Goodwill Mzumala</Author>
<DefaultNamespace>TcDynCollections</DefaultNamespace>
<ProjectVersion>1.0.3.20</ProjectVersion>
<ProjectVersion>1.0.4.21</ProjectVersion>
<DocFormat>reStructuredText</DocFormat>
<Description>A library for handling collections of data dynamically in TwinCAT.</Description>
<CombineIds>true</CombineIds>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// This function has been automatically generated from the project information.
VAR_GLOBAL CONSTANT
{attribute 'const_non_replaced'}
stLibVersion_TwinCat_Dynamic_Collections : ST_LibVersion := (iMajor := 1, iMinor := 0, iBuild := 3, iRevision := 20, nFlags := 0, sVersion := '1.0.3.20');
stLibVersion_TwinCat_Dynamic_Collections : ST_LibVersion := (iMajor := 1, iMinor := 0, iBuild := 4, iRevision := 21, nFlags := 0, sVersion := '1.0.4.21');
END_VAR
]]></Declaration>
</GVL>
Expand Down

0 comments on commit 03b2874

Please sign in to comment.