Bill Currie
7d4c1d79b1
[plist] Use reference counts for items
...
This makes it much easier to share items between property lists (eg,
targets and the main entity list in cl_light).
2023-03-13 11:26:13 +09:00
Bill Currie
8f87407133
[ruamoko] Add wrappers for the new plist functions
...
With both file and string versions (as per PL_GetPropertyList).
2023-03-12 14:35:17 +09:00
Bill Currie
2748f1c9f7
[ruamoko] Add support for PL_KeyAtIndex
...
I'd forgotten to wrap the function when I added it, but didn't need it
until now.
2023-02-14 12:45:04 +09:00
Bill Currie
23e3b4c2e5
[ruamoko] Retrieve a plitem_t from PropertyList
...
And also internally for cross-builtin use.
2021-12-24 06:45:13 +09:00
Bill Currie
5e273a3693
[ruamoko] Make plitem_t easier to use
...
Or more accurately, struct plitem_s. Including the pointer in the
typedef made things a little awkward.
2021-12-24 06:45:13 +09:00
Bill Currie
e1e2a0e712
[ruamoko] Add a wrapper for PL_Line
...
Makes error reporting in rua code easier.
2020-12-23 21:52:42 +09:00
Bill Currie
7a478b4ce7
[libr] Make PLItem more useful
...
I can't say that I like what's there even now, but at least PLItem can
be used without a lot of casting. Really, Ruamoko needs dictionary and
string classes so reading a property list can build more natural object
trees rather than this mess from when I knew too little.
2020-07-05 16:53:35 +09:00
Bill Currie
cdc1f0c5e7
[libr] Treat ruamoko headers as system headers
...
Now that qfcc actually supports them properly.
2020-03-03 15:24:41 +09:00
Bill Currie
896791b209
Correct the spelling of "int" and clean up the mess.
2011-03-25 16:53:04 +09:00
Bill Currie
1195df9686
Update for the new syntax.
2011-02-13 21:25:36 +09:00
Bill Currie
75ec6bf244
Clean out some unnecessary types from the progs engine and clean up the mess.
...
This is a nasty commit, sorry, but 99% of the commit is interdependent.
2011-01-10 12:25:31 +09:00
Bill Currie
addbcaa09c
Add PL_GetFromFile builtin.
...
This is an extension "wrapper" (no such C function). This allows ruamoko
programs to read property lists without worrying about the memory required
to store the string for the property list being read.
2010-11-24 17:01:19 +09:00
Bill Currie
3878b76cc5
Start using autorelease.
...
Much more testing is required (oh, but for qc-valgrind), but there is now
a ~945kB block of free data in the menu progs heap :).
Also, correct the printed size of the memory block to not include the
block header size.
2010-11-24 17:01:18 +09:00
Bill Currie
70ec9848e7
add PL_RemoveObjectForKey and make PL_D_AddObject take a normal C string for key instead of a pl string.
2006-12-09 06:00:36 +00:00
Bill Currie
eeca330af2
whitespace
2006-12-02 06:51:41 +00:00
Bill Currie
7a217b81cd
add a PropertyList class hierarchy
...
This is an imperfect revision of history.
2004-11-13 01:55:00 +00:00