raze-gles/polymer/eduke32/source
helixhorned 3deb8d1d99 Clear up handling of g_*NamePtr in the game.
The primary change is that things have been made memory-clean.  Some of these
pointers may point to wildly different places during the course of the program
such as statically or dynamically allocated storage, the buffer returned by
getenv() (which must not be modified according to the docs), or an element of
argv[].  Consequently, we need to strdup, or better, dup_filename them if they
are ever to be passed to a function that modifies their pointed-to data.

Specifically:
 - added statics or consts according to usage
 - 3 new functions clear{Grp,Def,Script}NamePtr, only 'Def' one extern for now
 - in G_CheckCommandLine, don't strip 'const'; use Bstrncpyz where appropriate
 - remove multiple declarations

Also, warn if an application parameter has been ignored (not matched).

git-svn-id: https://svn.eduke32.com/eduke32@2561 1a8010ca-5511-0410-912e-c29ae57300e0
2012-03-28 19:44:00 +00:00
..
enet Makefiles: 2012-03-23 20:22:10 +00:00
jaudiolib Makefiles: 2012-03-23 20:22:10 +00:00
jmact Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
lunatic Superficial text changes: 2012-03-26 05:05:57 +00:00
misc Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
_functio.h rotatesprite and multivoc have a rape baby 2010-06-22 21:50:01 +00:00
_midi.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
_rts.h Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
actors.c Rename ud.clipping to ud.noclip internally for sanity. 2012-03-11 17:38:50 +00:00
actors.h Remove non-SAMESIZE_ACTOR_T code and remaining #defines. 2012-03-11 17:37:50 +00:00
anim.c Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz 2012-03-28 19:43:21 +00:00
anim.h Possibility of specifying sounds for a VPX anim-replacement via DEF. 2012-01-10 23:43:54 +00:00
animvpx.c In VPX 3 planed --> packed conversion code, pull constant expressions out of 2012-01-10 23:43:33 +00:00
animvpx.h VP8 video playback as (side-by-side) replacement of ANM moving pictures. 2011-07-18 19:06:29 +00:00
astub.c Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz 2012-03-28 19:43:21 +00:00
common.c New helper function "char *dup_filename(const char *fn)" in common.h. 2012-03-28 19:43:39 +00:00
config.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
config.h Consolidate POLYMOST preprocessor define into USE_OPENGL, remove SUPERBUILD preprocessor define, add additional mode to neartag() to skip sprite searches and speed up processing (and enable for CON_OPERATE), fix issue with nearby single instance sounds not playing due to out of range sounds blocking their playback, fix issue with settings.cfg being reset to default bindings when running a mod that specifies its own cfg base name, improve CON structure member interface read/write performance, fix a bug with CON "move" pointer validation 2011-03-04 08:50:58 +00:00
demo.c Replace all occurences of assert in our code with Bassert. 2012-03-26 22:04:44 +00:00
demo.h Rewrite the savegame format in terms of the generic saving/loading system. 2011-12-25 15:34:06 +00:00
duke3d.h Remove non-SAMESIZE_ACTOR_T code and remaining #defines. 2012-03-11 17:37:50 +00:00
function.h EDuke32: Various menu tweaks and one fix. 2012-02-04 14:30:54 +00:00
game.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
game.h Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
gamedef.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
gamedef.h Factor out various instances of getatoken() into common.c. 2012-03-26 22:05:23 +00:00
gamedefs.h Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
gameexec.c Bound-check the 'picnum' argument to rotatesprite; tweak CON digitalnumber check. 2012-03-25 22:01:21 +00:00
gameexec.h Add some #includes to gameexec.h and sector.h so that they can be included directly 2012-02-09 22:44:45 +00:00
gamestructures.c Rename ud.clipping to ud.noclip internally for sanity. 2012-03-11 17:38:50 +00:00
gamevars.c Superficial text changes: 2012-03-26 05:05:57 +00:00
gamevars.h Fix crashes on 64-bit due to unintended address truncation on ptr vars 2011-09-04 23:06:12 +00:00
global.c All string literals sent as normal messages to the player in-game written in ALL CAPS have been converted by hand to more proper capitalization. (Critical errors have been left as-is, and the editor did not need changes.) 2012-03-26 05:07:12 +00:00
global.h Allow up to 7 skills, coded by M210 and taken over with modifications. 2012-03-25 22:00:27 +00:00
GNU.TXT Importing source for great justice 2006-04-13 20:47:06 +00:00
grpscan.c Capitalize numgrpfiles macro to NUMGRPFILES. 2012-03-26 22:03:40 +00:00
grpscan.h Capitalize numgrpfiles macro to NUMGRPFILES. 2012-03-26 22:03:40 +00:00
keys.h Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
m32def.c Superficial text changes: 2012-03-26 05:05:57 +00:00
m32def.h Somewhat largish commit with various keyboard tinkering for Mapster. 2011-11-25 09:51:06 +00:00
m32exec.c Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz 2012-03-28 19:43:21 +00:00
m32structures.c Addresses posts #180 and #181 of the TROR thread. Specifically, 2011-07-04 21:20:59 +00:00
m32vars.c Continuously keep track of the number of sprites in the world. 2012-03-14 22:30:24 +00:00
macros.h Pull the 'for (' ... ')' out of the TRAVERSE_{CONNECT,SPRITE_*} macros. 2012-02-21 19:33:33 +00:00
mapster32.h In Mapster32, remove ReadGamePalette() and GAMEpalette[] and use engine's palette[]. 2012-03-22 22:46:56 +00:00
mdump.cpp Superficial text changes: 2012-03-26 05:05:57 +00:00
mdump.h 1. Removed unneeded the svn:executable proprties. These files aren't actually executable. 2008-07-12 14:09:52 +00:00
menus.c Replace {get,clear}filenames with fnlist functions in build.c, menus.c and osdcmds.c 2012-03-28 19:42:16 +00:00
menus.h Rewrite the savegame format in terms of the generic saving/loading system. 2011-12-25 15:34:06 +00:00
midi.c Makefile: remove ebacktrace1.dll as dependency to eduke32 and mapster32 and 2011-10-27 13:14:06 +00:00
midi.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
mpu401.c Global thermonuclear code rape 2010-08-02 08:13:51 +00:00
mpu401.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
music.c Final round (I hope!) of sound fixes. Should also fix the crash on exit on Windows and the REACTOR sprite size bug. 2010-06-26 08:51:42 +00:00
names.h add two tile labels which Todd forgot to move from GAME.CON to DEFS.CON and therefore did not make it to names.h 2011-08-20 23:27:46 +00:00
namesdyn.c Make savegames between dynamicremap-enabled and -disabled builds compatible. 2012-01-29 21:46:44 +00:00
namesdyn.h Make savegames between dynamicremap-enabled and -disabled builds compatible. 2012-01-29 21:46:44 +00:00
net.c All string literals sent as normal messages to the player in-game written in ALL CAPS have been converted by hand to more proper capitalization. (Critical errors have been left as-is, and the editor did not need changes.) 2012-03-26 05:07:12 +00:00
net.h a couple of multiplayer fixes 2011-03-05 01:41:38 +00:00
old.diff Tweakery in various places. 2011-03-17 23:37:38 +00:00
osdcmds.c Replace {get,clear}filenames with fnlist functions in build.c, menus.c and osdcmds.c 2012-03-28 19:42:16 +00:00
osdcmds.h Global thermonuclear code rape 2010-08-02 08:13:51 +00:00
osdfuncs.c legibility improvements: rotatesprite(..., 0,0,xdim-1,ydim-1) -> rotatesprite_fs 2012-02-02 17:35:05 +00:00
osdfuncs.h Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
player.c All string literals sent as normal messages to the player in-game written in ALL CAPS have been converted by hand to more proper capitalization. (Critical errors have been left as-is, and the editor did not need changes.) 2012-03-26 05:07:12 +00:00
player.h Comment out computergetinput() and children, which are unused since ng netcode. 2012-03-22 22:46:07 +00:00
premap.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
premap.h Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
quotes.h Multiplayer improvements 2011-02-25 21:50:19 +00:00
rev.h Use svn revision numbers in synthesis build strings 2011-03-04 09:29:03 +00:00
rts.c Global thermonuclear code rape 2010-08-02 08:13:51 +00:00
rts.h Possibly fix another weird crash 2010-08-07 23:14:23 +00:00
savegame.c Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz 2012-03-28 19:43:21 +00:00
savegame.h Save 'Numsprites' into savegames and mapstates. Bump savegame minor version. 2012-03-14 22:31:49 +00:00
sdlmusic.c Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz 2012-03-28 19:43:21 +00:00
sector.c Explicitly call A_DeleteSprite() from game code instead of relying on macro expansion. 2012-03-11 17:38:13 +00:00
sector.h Save 'Numsprites' into savegames and mapstates. Bump savegame minor version. 2012-03-14 22:31:49 +00:00
soundefs.h update soundefs.h to match the final v1.5 DEFS.CON 2011-08-20 23:27:58 +00:00
sounds.c Superficial text changes: 2012-03-26 05:05:57 +00:00
sounds.h Rename SOUNDOWNER's (used in sound_t) member .i to .ow for easier grepping. 2012-03-10 21:22:44 +00:00
sounds_mapster32.c Rename SOUNDOWNER's (used in sound_t) member .i to .ow for easier grepping. 2012-03-10 21:22:44 +00:00
sounds_mapster32.h Rename SOUNDOWNER's (used in sound_t) member .i to .ow for easier grepping. 2012-03-10 21:22:44 +00:00
standard.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
startgtk.game.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
startwin.game.c Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
startwin.game.h Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes 2010-05-25 10:56:00 +00:00
winbits.c Define Batoi/Batol to strtol(...) in compat.h and use these when necessary. 2012-02-20 21:17:39 +00:00