major overhaul for thread-safety - many global variables and static
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 22 Oct 2011 23:52:58 +0000 (23:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 22 Oct 2011 23:52:58 +0000 (23:52 +0000)
commitcfee52a1ec9db338098789cae89ae5cf1f7a6fbf
tree79e57febefa1e1845cfacf98e160e332eba87e4f
parente267b18ea5e1e6ab71b14db5a12a803cd0554421
major overhaul for thread-safety - many global variables and static
buffers eliminated, this causes MANY changes, such as va() taking a
buffer, prog variable has to be passed as parameter to every PRVM
function, and many other edits of that nature.
realtime is now the only linearly increasing time stamp in the engine,
Sys_DoubleTime replaced by Sys_DirtyTime which requires sanity checks in
every use, but ensures thread-safe behavior
added -Wmissing-prototypes to makefile so that no one will ever put an
extern function prototype in a .c file again, this was necessary to
clean up crashes where prototype parameters differed.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11463 d7cf8633-e32d-0410-b094-e92efae38249
101 files changed:
cap_avi.c
cap_ogg.c
cd_shared.c
cdaudio.h
cl_collision.c
cl_demo.c
cl_input.c
cl_main.c
cl_parse.c
cl_particles.c
cl_screen.c
cl_video.c
cl_video_jamdecode.c
client.h
clvm_cmds.c
clvm_cmds.h
cmd.c
cmd.h
collision.c
common.c
common.h
console.c
console.h
crypto.c
csprogs.c
csprogs.h
curves.c
cvar.c
dpsoftrast.c
dpvsimpledecode.c
fs.c
fs.h
ft2.c
gl_backend.c
gl_draw.c
gl_rmain.c
gl_rsurf.c
gl_textures.c
host.c
host_cmd.c
image.c
image_png.c
jpeg.c
keys.c
keys.h
lhnet.c
lhnet.h
libcurl.c
libcurl.h
makefile
mathlib.h
menu.c
menu.h
model_alias.c
model_brush.c
model_shared.c
model_sprite.c
mvm_cmds.c
netconn.c
netconn.h
palette.c
portals.c
progsvm.h
protocol.c
prvm_cmds.c
prvm_cmds.h
prvm_edict.c
prvm_exec.c
prvm_execprogram.h
quakedef.h
r_lightning.c
r_shadow.c
r_sky.c
r_sprites.c
r_textures.h
render.h
sbar.c
sbar.h
server.h
snd_main.c
snd_mix.c
sound.h
sv_demo.c
sv_main.c
sv_move.c
sv_phys.c
sv_user.c
svvm_cmds.c
sys.h
sys_shared.c
timing.h
utf8lib.c
utf8lib.h
vid.h
vid_glx.c
vid_sdl.c
vid_shared.c
view.c
world.c
world.h
zone.c