dxx-rebirth/common
Kp f50aef0241 Remove unused loadgl indirections
Per request from Mako88, remove unused loadgl indirections.  loadgl.h
was imported from elsewhere and defines indirections for many functions
that Descent does not use.  Some of these are guarded by WINVER
conditionals and, in Mako88's unspecified environment, defining WINVER
to expose these results in a build failure because the guarded typedef
requires a type that is not defined by the environment.

Compensate for that, and likely improve the generated code, by removing
all unused gl symbols.

    # Save the results to a file, then run the file separately.  This
    # avoids any chance that sed might try to edit the file while later
    # searches are still running.
    s=( `git ls-files '*.h' '*.cpp' | grep -v -F common/include/loadgl.h` )
    git grep '#define w\?gl[A-Z]\w\+ dw\?gl' common/include/loadgl.h |
	    gawk '{print $2;}' | while read f; do
	    if ! git grep -q -l '\<d\?'"$f"'\>' -- "${s[@]}"; then
		    echo "/\\<d\?$f\\>/d"
	    fi
    done > unused.sed
    sed -i common/include/loadgl.h -f unused.sed
2016-08-20 22:28:44 +00:00
..
2d Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
3d Propagate MAX_INSTANCE_DEPTH 2016-07-10 04:11:34 +00:00
arch Remove char[N] overload for PHYSFSX_getRealPath 2016-08-06 19:55:25 +00:00
editor Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00
include Remove unused loadgl indirections 2016-08-20 22:28:44 +00:00
main Switch valptridx error reporting size to DXX_PRI_size_type 2016-08-20 22:28:43 +00:00
maths Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
mem Rewrite declarations of ubyte * to standard uint8_t * 2016-07-14 01:59:02 +00:00
misc Move HMP->MIDI magic numbers into magic_header[] 2016-08-19 03:41:40 +00:00
texmap Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
ui Flatten some ui type hierarchy 2016-08-06 19:55:24 +00:00