Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
5037 2402d 15h hendricks266 /polymer/eduke32/build/src/compat.c BSD: Build system fixes/improvements. DONT_BUILD.  
5005 2418d 16h hendricks266 /polymer/eduke32/build/src/compat.c Apple: Update Xcode project and build system. DONT_BUILD.  
4922 2448d 16h terminx /polymer/eduke32/build/src/compat.c Fix wildmatch(), resolves errors matching things like "*.zip" with "duke3d.hrp.zip" for example.  
4894 2452d 18h terminx /polymer/eduke32/build/src/compat.c Minor cleanup and formatting changes. DONT_BUILD.  
4802 2486d 16h hendricks266 /polymer/eduke32/build/src/compat.c Refine the previous commit a bit. DONT_BUILD.  
4801 2486d 19h hendricks266 /polymer/eduke32/build/src/compat.c Mac OS X: Add detection of the Steam and GOG releases of Duke 3D and the Steam release of NAM. DONT_BUILD.  
4761 2500d 17h hendricks266 /polymer/eduke32/build/src/compat.c Fix build with x86_64-MinGW-w64. DONT_BUILD.  
4747 2502d 11h terminx /polymer/eduke32/build/src/compat.c 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.  
4697 2526d 6h terminx /polymer/eduke32/build/src/compat.c Fix a couple of clang warnings. DONT_BUILD.  
4658 2530d 20h terminx /polymer/eduke32/build/src/compat.c Various additional optimizations: add CLASSIC_SLICE_BY_4 mode to unroll some of the loops in a-c, replace integer divisions by a divisor unknown at compile time with usage of libdivide, clean up pragmas further by removing more old stuff that wasn't used anywhere. This is another one of those nasty commits that make people cry. DONT_BUILD.  
4648 2535d 15h hendricks266 /polymer/eduke32/build/src/compat.c Further work on the Xcode project.  
4619 2555d 19h terminx /polymer/eduke32/build/src/compat.c Clean up the "X" variants of malloc and friends to avoid unncessary function calls and parameter passing  
4502 2664d 14h hendricks266 /polymer/eduke32/build/src/compat.c Wrap most calls to exit() with a macro that will print the exit status, file name, line number, and function name to the log when using a debug build.  
4490 2678d 23h helixhorned /polymer/eduke32/build/src/compat.c Add X{m,c,re}alloc and Xstrdup macros that call an out-of-memory handler on failure.

These wrap the x*alloc or xstrdup functions in compat.c. The handler gets passed
__FILE__, __LINE__ and __func__ (if available) in debugging builds.

Terminating the application process immediately in case of allocation failure
will let us prune many error handling paths and simplify a good portion of code.
 
4325 2786d 16h terminx /polymer/eduke32/build/src/compat.c Fix 64-bit MSVC builds. DONT_BUILD.  
3496 3144d 14h hendricks266 /polymer/eduke32/build/src/compat.c Wii: Fix most warnings. Three remain: two are labeled with FIXMEs; the third consists of signed/unsigned comparisons involving LSWAPIB() in kplib.c.  
3168 3239d 9h helixhorned /polymer/eduke32/build/src/compat.c Split r3159..r3161, part 3: MSVC, nedmalloc, *layer, startup windows.  
3165 3239d 9h helixhorned /polymer/eduke32/build/src/compat.c Revert "Fix the warnings when building with C++, add MSVC C++ build support."

This reverts r3159..r3161.

Conflicts:
eduke32/build/include/compat.h
(Handled so that r3163's changes are kept applied.)
 
3159 3240d 0h terminx /polymer/eduke32/build/src/compat.c Fix the warnings when building with C++, add MSVC C++ build support. This also changes the internal type of lotags, hitags and cstat type fields to uint16_t instead of int16_t to clean up some dubious behavior wherein the code was using a value of 32768 as a flag in these fields for certain types of things, like invisible sprites (using the value as if it was uint16_t) where it was elsewhere checking if the value was < 0 (using the value as if it was int16_t). This change may break a few specific effects if any part of the relevant code was missed when looking for areas that needed to be addressed.

I think there's also a fix for the CON precache system breakage in here (lost it in my local tree when I started getting the C++ build working in MSVC, sorry!)
 
3116 3249d 20h hendricks266 /polymer/eduke32/build/src/compat.c 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.)
 

Show All