PBLIst linked list library extended to inc arrays

Developed or developing a new product in PureBasic? Tell the world about it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

PBLIst linked list library extended to inc arrays

Post by srod »

***see post below for updated library***

Hi,

just finished a small linked list library which I needed for an application I am writing. Thought I would share it as some might find it useful.

The lists can be nested and used within structures and structures nested withing nested lists of structures of ... (aghhhh!)

Zip includes source code, compiled library file, .chm help file and 2 example programs.

Download: www.purecoder.net\Purebasic\PBList.zip
Last edited by srod on Tue Apr 12, 2005 12:57 am, edited 2 times in total.
I may look like a mule, but I'm not a complete ass.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: PBlist linked lists

Post by NoahPhense »

Very kewl.. you can never have too many linklist stuff.

- np
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

srod,

Thanks for the linked list library!

Your download URL has some backslashes ("\") in it, so it won't work in most browsers other than Internet Explorer. You should use only forward slashes ("/"), like this:

http://www.purecoder.net/purebasic/pblist.zip

Regards,
Eric
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ebs wrote:Your download URL has some backslashes ("") in it, so it won't work in most browsers other than Internet Explorer.[/url]
Works very well with Opera here.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Post by localmotion34 »

impressive. i think that is a great way to handle the creation of complex gadgets. ive forever been working on docking windows and automated dockpanes. i think this may allow me to do it fairly easy. thanks!!!

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Arrays and Linked lists

Post by srod »

Hi,

Have extended the linked list library so that it now offers single dimension arrays of long type variables which can be dynamically redimensioned without having the original elements deleted and without having to copy all elements to a new array etc.

Although the implementation of these arrays uses a small PBList linked list, a PBArray offers much faster access to individual elements than any kind of linked list.

Zip file includes all source code (massively commented), a compiled library file, a .chm help file and several examples.

Please let me know if you find any bugs.

Download: www.purecoder.net/purebasic/Arrays&lists.zip
Last edited by srod on Tue Apr 12, 2005 8:04 am, edited 2 times in total.
I may look like a mule, but I'm not a complete ass.
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Looks impressive! Like ebs says, the links don't work as they are (in FireFox).
Mat
Post Reply