Recent

Author Topic: (Solved) TIndexedAVLTree in Trunk  (Read 486 times)

lainz

  • Hero Member
  • *****
  • Posts: 4517
  • Web, Desktop & Android developer
    • https://lainz.github.io/
(Solved) TIndexedAVLTree in Trunk
« on: April 23, 2024, 10:19:29 pm »
Hi, I can't install trunk, but I know from other colleague that TIndexedAVLTree from LAZ_AVL_Tree is not available anymore.

How I can replace that unit and class?

Thanks.
« Last Edit: April 23, 2024, 10:49:21 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4517
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: TIndexedAVLTree in Trunk
« Reply #1 on: April 23, 2024, 10:33:29 pm »
I've seen that avglvltree.pas includes that class in trunk, how I can add an ifdef so lazarus 3.3 and lower uses the old LAZ_AVL_Tree and the trunk 3.99 uses avglvltree.pas unit?

Thanks in advance.
« Last Edit: April 23, 2024, 10:38:15 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4517
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: TIndexedAVLTree in Trunk
« Reply #2 on: April 23, 2024, 10:49:03 pm »
{$IF FPC_FULLVERSION >= 30400}
uses
  avglvltree;
{$ELSE}
uses
  LAZ_AVL_Tree;
{$ENDIF}

 

TinyPortal © 2005-2018