Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
5005 2354d 7h hendricks266 /polymer/eduke32/build/src/compat.c Apple: Update Xcode project and build system. DONT_BUILD.  
4922 2384d 7h terminx /polymer/eduke32/build/src/compat.c Fix wildmatch(), resolves errors matching things like "*.zip" with "duke3d.hrp.zip" for example.  
4894 2388d 9h terminx /polymer/eduke32/build/src/compat.c Minor cleanup and formatting changes. DONT_BUILD.  
4802 2422d 6h hendricks266 /polymer/eduke32/build/src/compat.c Refine the previous commit a bit. DONT_BUILD.  
4801 2422d 9h 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 2436d 7h hendricks266 /polymer/eduke32/build/src/compat.c Fix build with x86_64-MinGW-w64. DONT_BUILD.  
4747 2438d 1h 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 2461d 21h terminx /polymer/eduke32/build/src/compat.c Fix a couple of clang warnings. DONT_BUILD.  
4658 2466d 10h 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 2471d 6h hendricks266 /polymer/eduke32/build/src/compat.c Further work on the Xcode project.  
4619 2491d 10h 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 2600d 5h 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 2614d 14h 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 2722d 7h terminx /polymer/eduke32/build/src/compat.c Fix 64-bit MSVC builds. DONT_BUILD.  
3496 3080d 5h 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 3175d 0h helixhorned /polymer/eduke32/build/src/compat.c Split r3159..r3161, part 3: MSVC, nedmalloc, *layer, startup windows.  
3165 3175d 0h 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 3175d 14h 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 3185d 11h 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.)
 
3086 3206d 14h terminx /polymer/eduke32/build/src/compat.c Remove built-in copy of nedmalloc and update nedmalloc.dll. Note that the built-in copy of nedmalloc hasn't been updated or enabled in a really long time as modern system allocators (Windows 7 and Linux 3.x at least) are no longer consistently beat by nedmalloc (but nor are they consistently faster). So, the dll remains for users of Windows XP because it may still improve performance there (while not likely degrading it on Vista/7).  

Show All