dxx-rebirth/common/include
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
..
editor Remove unused CENTER_STRING_LENGTH 2016-07-09 17:58:35 +00:00
3d.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
args.h Fix inverted sense of -use_players_dir 2016-07-22 02:25:17 +00:00
byteutil.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
compiler-addressof.h
compiler-array.h Remove support for array other than std::array 2016-07-31 22:25:49 +00:00
compiler-begin.h
compiler-exchange.h
compiler-integer_sequence.h
compiler-lengthof.h
compiler-make_unique.h
compiler-range_for.h Require C++11 range-based for 2016-08-08 00:07:19 +00:00
compiler-static_assert.h Make assert_equal inherit integral_constant 2016-07-15 03:43:01 +00:00
compiler-type_traits.h Move <type_traits> test to Cxx11RequiredFeature 2016-08-08 00:07:20 +00:00
console.h Convert various static const expressions to constexpr 2016-07-16 16:52:04 +00:00
countarray.h
digi_audio.h Move some digi symbols to dcx 2016-07-15 03:43:02 +00:00
digi_mixer.h Move some digi symbols to dcx 2016-07-15 03:43:02 +00:00
digi_mixer_music.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
dsx-ns.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
dxxerror.h Include file+line in UserError output 2016-04-03 17:50:42 +00:00
event.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
fmtcheck.h Rename fmtcheck macros to follow standard conventions 2016-07-15 03:43:03 +00:00
func.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
fwd-event.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
fwd-gr.h Pass bm_mode to gr_init_bitmap 2016-05-28 17:31:27 +00:00
fwd-partial_range.h Use partial_const_range 2016-02-12 04:02:28 +00:00
fwd-valptridx.h Add file/line to valptridx output when available 2016-04-06 03:34:13 +00:00
fwd-vecmat.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
fwd-window.h Use #ifdef dsx to guard dsx namespace 2016-01-09 16:38:15 +00:00
gr.h Make cv_fade_level unsigned 2016-05-28 17:31:26 +00:00
grdef.h Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00
hash.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
hmp.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
iff.h Convert various static const expressions to constexpr 2016-07-16 16:52:04 +00:00
ignorecase.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
internal.h Move OGL_VIEWPORT assignments above glViewport 2016-05-28 17:31:26 +00:00
interp.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
joy.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
jukebox.h Use #ifdef dsx to guard dsx namespace 2016-01-09 16:38:15 +00:00
key.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
loadgl.h Remove unused loadgl indirections 2016-08-20 22:28:44 +00:00
makesig.h Rewrite parenthesized uses of old-style numeric casts to static_cast 2016-07-31 22:25:49 +00:00
maths.h Remove useless cast in f2db 2016-07-15 03:43:02 +00:00
messagebox.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
mouse.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
ntstring.h
null_sentinel_iterator.h
ogl_extensions.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
ogl_init.h Pass canvas to ogl_upixelc 2016-05-28 17:31:26 +00:00
ogl_sync.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
pack.h Remove unused inherit_void_ptr_handler 2016-07-15 03:43:01 +00:00
palette.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
partial_range.h Move partial_range __builtin_object_size out of line 2016-02-06 22:12:55 +00:00
pcx.h Propagate bm_mode::linear into bald_guy_load 2016-05-28 17:31:26 +00:00
physfs-serial.h Fix capitalization of PHYSFS_File 2016-01-09 16:38:14 +00:00
physfs_list.h Include fwd-partial_range.h in physfs_list.h 2016-08-06 19:55:23 +00:00
physfsx.h Remove char[N] overload for PHYSFSX_getRealPath 2016-08-06 19:55:25 +00:00
poison.h
pstypes.h
rbaudio.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
reverse.h
rle.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
serial.h Flatten some serial type hierarchy 2016-08-06 19:55:24 +00:00
strutil.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
texmap.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
timer.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
u_mem.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
ui.h Prefer make_unique over raw new 2016-08-06 19:55:24 +00:00
valptridx.h Remove obsolete arguments from DEFINE_VALPTRIDX_SUBTYPE 2016-04-06 03:34:13 +00:00
varutil.h
vecmat.h Hide vm_distance safety net from clang 2016-02-02 03:10:53 +00:00
window.h Convert various static const expressions to constexpr 2016-07-16 16:52:04 +00:00