Subversion Repositories eduke32

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4747 2532d 4h terminx /polymer/eduke32/build/include/compat.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.  
4743 2532d 4h terminx /polymer/eduke32/build/include/compat.h Add FORCE_INLINE to compat.h and apply it to a couple of things we'd strongly prefer be inlined. DONT_BUILD.  
4736 2546d 18h helixhorned /polymer/eduke32/build/include/compat.h In release builds, #define Xaligned_alloc as xaligned_malloc.

Otherwise, the out-of-memory handler is not called in case of failure.
 
4716 2552d 11h terminx /polymer/eduke32/build/include/compat.h A couple of additional compat.h formatting changes. DONT_BUILD.  
4708 2555d 11h helixhorned /polymer/eduke32/build/include/compat.h compat.h: pedantic whitespace formatting. DONT_BUILD.  
4705 2555d 23h terminx /polymer/eduke32/build/include/compat.h CPLUSPLUS mode build fix. DONT_BUILD.  
4697 2555d 23h terminx /polymer/eduke32/build/include/compat.h Fix a couple of clang warnings. DONT_BUILD.  
4695 2555d 23h terminx /polymer/eduke32/build/include/compat.h Get rid of all the static arrays with sizes based on MAXXDIM and MAXYDIM  
4685 2560d 6h hendricks266 /polymer/eduke32/build/include/compat.h Improve fine-grained GCC and clang version detection, fixing recently introduced build issues. DONT_BUILD.  
4680 2560d 13h terminx /polymer/eduke32/build/include/compat.h Another 5000 lines of pain and tears. DONT_BUILD.  
4658 2560d 13h terminx /polymer/eduke32/build/include/compat.h 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.  
4651 2560d 13h terminx /polymer/eduke32/build/include/compat.h That's one hell of a typo  
4648 2565d 9h hendricks266 /polymer/eduke32/build/include/compat.h Further work on the Xcode project.  
4632 2585d 12h terminx /polymer/eduke32/build/include/compat.h Blrintf  
4619 2585d 12h terminx /polymer/eduke32/build/include/compat.h Clean up the "X" variants of malloc and friends to avoid unncessary function calls and parameter passing  
4606 2585d 12h terminx /polymer/eduke32/build/include/compat.h Extra files to support previous commits. Change hashing stuff to intptr_t so it can be used as a dictionary of pointers, change brightness/gamma/contrast to float instead of double, other misc changes. None of these commits build on their own so don't even bother.  
4540 2667d 7h hendricks266 /polymer/eduke32/build/include/compat.h Lunatic fixes:
1 compiler error.
2 compiler warnings.
1 runtime warning.

Note that at this time, CPLUSPLUS=1 LUNATIC=1 fails to build due to C++ function mangling, and Win64 Lunatic crashes.

DONT_BUILD.
 
4527 2671d 16h terminx /polymer/eduke32/build/include/compat.h lround for MSVC  
4502 2694d 7h hendricks266 /polymer/eduke32/build/include/compat.h 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 2708d 16h helixhorned /polymer/eduke32/build/include/compat.h 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.
 

Show All