Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
6055 1362d 18h hendricks266 /source/mact/include/scriplib.h The great repository rearrangement of 2017.

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

You down with CPP?
5662 1687d 4h terminx /source/mact/include/scriplib.h pragma once for mact headers.  
5547 1749d 23h terminx /source/mact/include/scriplib.h Enable -Wwrite-strings and fix all instances where string constants were passed to functions accepting a char ptr.  
5221 1986d 5h hendricks266 /source/mact/include/scriplib.h MACT: Fix warning: passing arguments 2 through 5 of 'SCRIPT_PutDoubleString' discards 'const' qualifier from pointer target type [enabled by default]  
4766 2160d 23h hendricks266 /source/mact/include/scriplib.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD.  
4747 2164d 15h terminx /source/mact/include/scriplib.h Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD.  
4541 2289d 19h hendricks266 /source/mact/include/scriplib.h 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.

3617 2768d 19h hendricks266 /source/mact/include/scriplib.h Fix loading of a user's previous "SelectedGRP" file.  
3531 2796d 10h helixhorned /source/mact/include/scriplib.h scriplib: attach const qualifiers to appropriate function input arguments.  
3116 2912d 1h hendricks266 /source/mact/include/scriplib.h Work-in-progress adjustment to the C code to compile under C++. It builds for me without errors using Win32 MinGW-GCC, but it still generates warning soup. No guarantees about MSVC or anything using SDL. Enable C++ by building with CPLUSPLUS=1. C remains the default and should compile with no change in setup.

Credit to Plagman for the idea and doing the work on the game side, which is included in this commit.

(Building as C++ will give us features with which we can make improvements and optimizations on the multiplayer code and Polymer.)
2796 3038d 5h helixhorned /source/mact/include/scriplib.h Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness

-Wwrite-strings is useful to detect code where string literals and e.g. alloc'd
strings are used side-by-side, potentially creating dangerous situations, or to
find uses of old, non-constified APIs. However, enabling it would still flood
the log with too many warnings. Also, GCC wrongly warns for initializations of
char arrays.
1346 4200d 22h terminx /source/mact/include/scriplib.h Remove jmact/types.h in favor of standardized inttypes.h stuff  
649 4602d 0h terminx /source/mact/include/scriplib.h Remove -Wno-unused from Makefile  
5 5309d 7h Plagman /source/mact/include/scriplib.h Importing source for great justice