6 Commits

Author SHA1 Message Date
Kevin Shanahan
e4e756bb88 common: return void * from COM_Load*File
Remove unneccessary casts from callers.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:43:10 +10:30
Kevin Shanahan
73fca333a3 progs: constify PF_{Get,Set}String
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:39:01 +10:30
Kevin Shanahan
168351707b progs: constify string arguments to various pr_edict.c functions
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 18:55:43 +10:30
Kevin Shanahan
33d933d806 progs: trivial sprintf -> snprintf conversions
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:24:50 +10:30
Kevin Shanahan
3f535f8856 common: constify COM_Parse and everything that follows...
...which is a lot! This ended up touching a lot of code, especially
when it spread to Cmd_Argv, etc. Mostly just propogating the correct
const qualifiers on pointers, but in some cases it was appropriate to
copy the buffer to e.g. lowercase filename in SV_BeginDownload_f or
re-write parts of functions where the buffer modifications was not
strictly needed (e.g. the *Say* functions).

I guess of note is that I now accept a const pointer into Z_Free,
which shouldn't be a problem since it doesn't modify the data pointed
to at all, just marks it as free.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-28 09:46:42 +10:30
Kevin Shanahan
e63df56984 progs: move pr_edict.c to the common directory
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-12 16:31:21 +10:30