Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
6055 1721d 1h 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 2045d 11h terminx /source/mact/include/scriplib.h pragma once for mact headers.  
5547 2108d 6h 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 2344d 13h 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 2519d 6h 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 2522d 22h 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 2648d 2h 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.

DONT_BUILD.
 
3617 3127d 2h hendricks266 /source/mact/include/scriplib.h Fix loading of a user's previous "SelectedGRP" file.  
3531 3154d 17h helixhorned /source/mact/include/scriplib.h scriplib: attach const qualifiers to appropriate function input arguments.  
3116 3270d 8h 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 3396d 13h 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 4559d 5h terminx /source/mact/include/scriplib.h Remove jmact/types.h in favor of standardized inttypes.h stuff  
649 4960d 7h terminx /source/mact/include/scriplib.h Remove -Wno-unused from Makefile  
5 5667d 14h Plagman /source/mact/include/scriplib.h Importing source for great justice