Subversion Repositories eduke32

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
7705 847d 13h terminx /source/mact/src/scriplib.cpp Added Xfree() function to accompany the Xmalloc() family of functions and change all uses of Bfree() to Xfree()

This was necessary because everything is already allocated with the Xmalloc() functions, but a future commit will make blocks allocated with those functions no longer compatible with the system implementation of free(), which Bfree() wraps.
 
7394 953d 18h hendricks266 /source/mact/src/scriplib.cpp Add buildvfs_fopen_write_text

Long-term we will need to replace all uses of "\n" in string literals printed to disk.
 
7359 963d 15h hendricks266 /source/mact/src/scriplib.cpp Add buildvfs, abstraction layer for file I/O.

Currently it passes calls through to the system libraries as before.

Also adds an incomplete implementation on PhysFS.
 
7110 1090d 1h terminx /source/mact/src/scriplib.cpp Clean up a few functions in mact scriplib  
7086 1090d 1h terminx /source/mact/src/scriplib.cpp Remove some dead statements, useless assigments, etc  
7079 1090d 1h terminx /source/mact/src/scriplib.cpp Replace remaining instances of regular malloc/calloc/realloc/strdup with our memory error handler versions  
6539 1417d 12h terminx /source/mact/src/scriplib.cpp tabs -> spaces  
6538 1417d 12h terminx /source/mact/src/scriplib.cpp Fix memory leak in MACT scriplib.cpp  
6370 1554d 3h terminx /source/mact/src/scriplib.cpp Fix gcc 7.1.0 warnings  
6074 1697d 16h hendricks266 /source/mact/src/scriplib.cpp Route all inclusion of libc headers and most of POSIX headers through compat.h.  
6055 1721d 14h hendricks266 /source/mact/src/scriplib.cpp The great repository rearrangement of 2017.

Files moved but not modified. Changes to follow in a subsequent commit.

You down with CPP?
 
5825 1879d 23h terminx /source/mact/src/scriplib.cpp Massive readability cleanup of game code part 1. DONT_BUILD.  
5547 2108d 19h terminx /source/mact/src/scriplib.cpp Enable -Wwrite-strings and fix all instances where string constants were passed to functions accepting a char ptr.  
5538 2108d 19h terminx /source/mact/src/scriplib.cpp Fix a stupid error in MACT, found with GCC's -Wlogical-op parameter.  
5469 2130d 19h hendricks266 /source/mact/src/scriplib.cpp Fix two bugs in SCRIPT_GetNumber that cause it to issue an incorrect return value.  
5352 2218d 6h hendricks266 /source/mact/src/scriplib.cpp Remove NULL checks before calling free(): they are unnecessary as per the C standard. Other cleanup includes factoring code into DO_FREE_AND_NULL() macros.  
5221 2345d 2h hendricks266 /source/mact/src/scriplib.cpp MACT: Fix warning: passing arguments 2 through 5 of 'SCRIPT_PutDoubleString' discards 'const' qualifier from pointer target type [enabled by default]  
4541 2648d 15h hendricks266 /source/mact/src/scriplib.cpp Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it.

DONT_BUILD.
 
4491 2700d 0h helixhorned /source/mact/src/scriplib.cpp Bye, bye, B*alloc(), all hail X*alloc()! Replace large portion of the calls...

... and cull code that is dead with the X*alloc() versions since they never
return NULL on requesting memory.

Use something like
git grep '[^Xx]\(m\|c\|re\)alloc *('
and
git grep '[^Xx]strdup *('
to see places where I left the B*alloc() calls intact.

BUILD_LUNATIC.
 
3617 3127d 15h hendricks266 /source/mact/src/scriplib.cpp Fix loading of a user's previous "SelectedGRP" file.  

Show All