Memory Management Question
[email protected] Tue, 20 Sep 2005 22:49:26 -0500
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
Hello! I want to add some linked lists to my characters for Role Play notes. I have a question about this: When I make my nodes that will be put on the characters, I have to use malloc, calloc, etc, to allocate my own memory. Then I have to do all of the freeing myself since I am not using a "free_list" (Such as the room_index_free list for room indicies)? I think I am right because I was reading memory.txt in fastrom and it said that instead of using free, it keeps track of a list of old zeroed out instances of whatever is on the list (ie: areas, rooms, mobs, etc). My final question is: for anything that does not use the "free_list" I have to do it the way I described above (assuming if I am right!) THANKS! ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom