***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
PBLIst linked list library extended to inc arrays
PBLIst linked list library extended to inc arrays
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.
- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: PBlist linked lists
Very kewl.. you can never have too many linklist stuff.
- np
- np
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
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
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Works very well with Opera here.ebs wrote:Your download URL has some backslashes ("") in it, so it won't work in most browsers other than Internet Explorer.[/url]
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- Enthusiast
- Posts: 665
- Joined: Fri Sep 12, 2003 10:40 pm
- Location: Tallahassee, Florida
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
Arrays and Linked lists
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
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.