Removed unused files git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5873 d7cf8633-e32d-0410-b094-e92efae38249
removed \n from all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since Host_Error/Sys_Error add their own \n as needed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5801 d7cf8633-e32d-0410-b094-e92efae38249
gave names to nearly all structs and enums which should make for better C++ error messages, and fix any more of those anonymous struct errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5750 d7cf8633-e32d-0410-b094-e92efae38249
-CVS: ---------------------------------------------------------------------- -Merged the old VM into the new one. The pr_* files are mess right now and will be removed as soon as they are not needed as semi-reference (to trace bugs) -There is a certain risk that the server could crash now and then since some parts of the code can only be debugged (- checking them by looking at the code would be quite tedious to put it nicely) -Changed all references to the old VM to point to the new VM (also hopefully all todo items) -Im working on a cleanup for the SV_VM_Begin/End mess. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5344 d7cf8633-e32d-0410-b094-e92efae38249
-Added the callcount field to the mfunction_t structure. -Both vms now record how often a function has been called and the profile cmd now outputs the callcount with the other information. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5319 d7cf8633-e32d-0410-b094-e92efae38249
-Fixed another signed/unsigned warning after the type change of func_t. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4830 d7cf8633-e32d-0410-b094-e92efae38249
expanded PR_PrintState from 5 statements to 8 statements printed, to give more chance of seeing the parameters to a function in warnings/crashes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4643 d7cf8633-e32d-0410-b094-e92efae38249
Made qc profile command post an error message instead of crashing when used during demo playback. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4352 d7cf8633-e32d-0410-b094-e92efae38249
added Print versions of Printf functions and made all calls that do not need formating use the Print versions; yes this is a cosmetic cleanup, prints are too rare to have any performance improvements. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3991 d7cf8633-e32d-0410-b094-e92efae38249
changed a lot of progs errors to warnings, and it prints QC status for warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3849 d7cf8633-e32d-0410-b094-e92efae38249
Added in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse. Fixed a bug where PRVM_Stacktrace/PR_Stacktrace were involved. Added some vm builtin functions to the new vm and changed PRVM_ED_LoadFromFile, so it can load multiple files. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3596 d7cf8633-e32d-0410-b094-e92efae38249
cleaned up pr_builtins array (now uses NULL instead of PF_fixme) and now reports builtin number if an unknown builtin is called fixed name of PF_setcolor (was setcolors) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2892 d7cf8633-e32d-0410-b094-e92efae38249
now counts (very approximate) cost of builtin functions called by progs, profile command reports this in addition to the instructions count, also profile now reports a whole list, not just the top 10 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2768 d7cf8633-e32d-0410-b094-e92efae38249
The gcc 2.95 problem was in fact OP_STORE_V doing nasty things to numbers that were not quite 'valid' floats, so we now just copy as ints. This allows us to make the string handling /much/ cleaner again. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2704 d7cf8633-e32d-0410-b094-e92efae38249
expanded string table offset table from 1024 to 65536, there must be a better solution than this though... this fixes savegame loading (which allocates lots of negative string offsets) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2689 d7cf8633-e32d-0410-b094-e92efae38249
implemented PR_GetString and PR_SetString from QWSV source, these work around the map change crash bugs in gcc 2.95.3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2644 d7cf8633-e32d-0410-b094-e92efae38249
fixed all the signed/unsigned mismatch warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2591 d7cf8633-e32d-0410-b094-e92efae38249
changed how QC interpreter handles edict field access - the entvars struct is now a pointer - yes this changed that many files... discovered gcc 2.95.3 is the sole cause of map change crashs in the QC interpreter - it does not compile pr_exec.c correctly somehow (I think OP_ADDRESS is the only place it has a problem), makefile now refers to gcc-3.1 (maybe this should be changed, but oh well for now) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2580 d7cf8633-e32d-0410-b094-e92efae38249
check for negative pr_depth in PR_Crash just to be obsessive git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2573 d7cf8633-e32d-0410-b094-e92efae38249
increased maximum stack depth git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2445 d7cf8633-e32d-0410-b094-e92efae38249