quakespasm/Quake
sezero d367a2fe9a 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey!
the QuakeC interpreter used to use string pointer offsets from pr_strings
even when the pointers lead to engine data which is often well out of
32bit range on a 64bit architecture and they lead to crashes.  they now
go through the new PR_SetEngineString and PR_GetString functions which
turn any address outside the pr_strings area into an index into a table
of engine string addresses, adding new string addresses to the table as
needed. the engine strings table is allocated with 256 entries at first
(see the PR_STRING_ALLOCSLOTS definition in pr_edict.c) and its size is
incremented by 256 as needed and re-allocated on the zone. managing that
allocation and reallocation is accomplished by the recently added Z_Realloc
function. implementation based on the uhexen2 (hexen2: hammer of thyrion)
engine which, in turn, is loosely based on twilight and quakeforge engines.
pr_strings range check is from tyrquake.
pr_edict.c: added the new PR_SetEngineString, PR_GetString, PR_AllocString
public functions and the new private PR_AllocStringSlots function. made
ED_NewString private to pr_edict.c and reworked it to return an index to a
newly allocated string.
progs.h: added prototypes for the new public PR_SetEngineString, PR_GetString
and PR_AllocString functions.
host_cmd.c, pr_cmds.c, pr_edict.c, pr_exec.c, progs.h, sv_main.c, sv_phys.c:
modifed to use the new PR_SetEngineString and PR_GetString functions.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@38 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-02-17 15:04:50 +00:00
..
Makefile added plain makefiles for native linux and cross-win32 builds. 2010-02-16 08:16:43 +00:00
Makefile.w32 added plain makefiles for native linux and cross-win32 builds. 2010-02-16 08:16:43 +00:00
anorm_dots.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
anorms.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
bspfile.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
cd_null.c cd_sdl.c: replaced the stub with the implementation we have in the uhexen2 project. 2010-02-16 12:51:25 +00:00
cd_sdl.c cd_sdl.c: replaced the stub with the implementation we have in the uhexen2 project. 2010-02-16 12:51:25 +00:00
cdaudio.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
chase.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
cl_demo.c cl_demo.c (CL_PlayDemo_f): get rid of the menu and/or console when starting a demo. 2010-02-16 09:55:13 +00:00
cl_input.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
cl_main.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
cl_parse.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
cl_tent.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
client.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
cmd.c cmd.c (Cmd_StuffCmds_f): fix logic so that it works properly with sdl/unix 2010-02-16 10:01:46 +00:00
cmd.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
common.c 64 bit compatibility effort, 1/nn: type correctness work in common.c, 2010-02-16 21:22:20 +00:00
common.h 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
console.c console.c (Con_DrawConsole): Change engine/version string to QuakeSpasm, 2010-02-16 14:48:23 +00:00
console.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
crc.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
crc.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
cvar.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
cvar.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
d_ifacea.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
draw.h draw.h: Added prototype for the new Draw_ClearMenuPicCache(). 2010-02-16 12:16:07 +00:00
gl_draw.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
gl_fog.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_mesh.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_model.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
gl_model.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_refrag.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_rlight.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_rmain.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_rmisc.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_screen.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
gl_sky.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
gl_test.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_texmgr.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
gl_texmgr.h 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
gl_vidnt.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_vidsdl.c 64 bit compatibility effort, 1/nn: type correctness work in common.c, 2010-02-16 21:22:20 +00:00
gl_warp.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_warp_sin.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
glquake.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
host.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
host_cmd.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
image.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
image.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
in_sdl.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
input.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
keys.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
keys.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
main.c main.c (main): Print version information at startup. 2010-02-16 12:32:26 +00:00
mathlib.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
mathlib.h 64 bit compatibility effort, 1/nn: type correctness work in common.c, 2010-02-16 21:22:20 +00:00
menu.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
menu.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
modelgen.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_dgrm.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_dgrm.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_loop.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_loop.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_main.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_sdl.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_sdlnet.c net_sdlnet.c, pl_win.c, quakedef.h: fixed SDL header includes. 2010-02-15 23:33:12 +00:00
net_sdlnet.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_udp.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_udp.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_win.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_wins.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
net_wins.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
pl_linux.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
pl_osx.m initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
pl_win.c net_sdlnet.c, pl_win.c, quakedef.h: fixed SDL header includes. 2010-02-15 23:33:12 +00:00
platform.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
pr_cmds.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
pr_comp.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
pr_edict.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
pr_exec.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
progdefs.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progdefs.q1 initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progs.h 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
protocol.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
quakedef.h quakedef.h (QUAKESPASM_VERSION): define as 0.1 for now. 2010-02-16 14:45:40 +00:00
r_alias.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
r_brush.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
r_part.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
r_sprite.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
r_world.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
render.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
resource.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sbar.c sbar.c (Sbar_SoloScoreboard): modified to include the map name and 2010-02-16 14:21:11 +00:00
sbar.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
screen.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
server.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
snd_dma.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
snd_mem.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
snd_mix.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
snd_sdl.c snd_dma.c: added SNDDMA_LockBuffer() as a new API, needed for, well, proper buffer 2010-02-15 23:45:06 +00:00
sound.h snd_dma.c: added SNDDMA_LockBuffer() as a new API, needed for, well, proper buffer 2010-02-15 23:45:06 +00:00
spritegn.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sv_main.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
sv_move.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sv_phys.c 64 bit compatibility effort, 4/nn: x86_64 works just fine now, yey! 2010-02-17 15:04:50 +00:00
sv_user.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sys.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sys_sdl.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
vid.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
view.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
view.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
wad.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
wad.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
world.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
world.h chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
zone.c 64 bit compatibility effort, 1/nn: type correctness work in common.c, 2010-02-16 21:22:20 +00:00
zone.h 64 bit compatibility effort, 1/nn: type correctness work in common.c, 2010-02-16 21:22:20 +00:00