TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Roger Scudder
from: Pascal Schmidt
date: 2003-10-17 13:28:46
subject: Memory matters

Hi Roger! :-)

 RS> I think you know that I was busting on you to make a point.  Just 
 RS> because something will probably be  cleaned up when the program ends 
 RS> doesn't mean it is a good idea to make it a way of life.  :-)
Yeah sure, but there are exceptions. I have a small scene rendering tool
which uses data structures like this:

- top is a scene_t
- this has a linked list of filter_t and a linked list of element_t
- a filter_t includes a linked list of when_t
- an element_t includes a linked list of filter_t

This stuff is constructed by reading an XML scene description at startup,
with all the list elements dynamically allocated. After that, the data
never changes while the program runs. I have not bothered with writing code
to traverse three levels of linked lists and freeing all the element
structures.

Ciao
Pascal

--- Msged/LNX 6.1.1
* Origin: In your heart you know it's flat. (1:153/401.2)
SEEN-BY: 633/267 270
@PATH: 153/401 307 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.