![]() |
a simple .ini parser
its code isn't very "clever"... but it's enough to be used with bots:
http://cvs.sourceforge.net/viewcvs.p...pp?view=markup http://cvs.sourceforge.net/viewcvs.p....h?view=markup (I'm licensing this code under GNU GPL with the special exception to link against the HLSDK) using is very simple: PHP Code:
|
Re: a simple .ini parser
well done man !
|
Re: a simple .ini parser
Some notes :
|
Re: a simple .ini parser
maybe use the STL, especially the vector<..> class, to get rid of all those explicit memory handling stuff, makes a lot of stuff a lot more simpler.
and depending on how you wanna use that ini class, if it's called often and needs to be fast, a hashtable might be useful |
Re: a simple .ini parser
updating CVS to fix a memory leak and allocate memory in blocks (thanks Jozef Wagner)
P.S, I found the memory leak with this handy tool: http://filebase.bots-united.com/inde...on=file&id=254 |
All times are GMT +2. The time now is 09:19. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.