Kp
d9f6e944c9
Use template aliases when available
2014-08-03 03:08:15 +00:00
Kp
2ec453f636
Fix tests with -Wunused-parameter
2014-08-01 03:34:08 +00:00
Kp
af6e4c2218
Optimistically reorder tests
...
Run tests last-to-first to detect success immediately. Run the lesser
tests next, so that build logs show what the compiler can do.
2014-08-01 03:34:08 +00:00
Kp
17dd525029
Improve __builtin_constant_p test
...
Discourage compiler from inlining due to -finline-functions-called-once.
Otherwise, -O2 -fno-inline will inline the sconf test, but not inline
real usage.
2014-08-01 03:34:08 +00:00
Kp
ecc49d0a11
Prefer compound statements to lambdas
...
Compound statements produce better error messages.
2014-08-01 03:34:08 +00:00
Kp
b37c295c59
Pick default extra_version from git tag
2014-07-26 22:53:41 +00:00
Kp
99555d0e73
Extend sconf force support
...
Allow forcing a test to succeed without changing flags.
2014-07-19 22:25:27 +00:00
Kp
b4a778ed9d
Use DXX_ALWAYS_ERROR_FUNCTION for printf check
...
Enable printf check without relying on embedded compound statements.
2014-07-19 21:15:01 +00:00
Kp
602da5a93c
Enable DXX_ALWAYS_ERROR_FUNCTION wherever lambdas are allowed
2014-07-19 18:01:15 +00:00
Kp
66890d16a7
Centralize quoting macro values
2014-07-19 18:01:15 +00:00
Kp
9cf70f29f6
Fix forcing features off
2014-06-30 03:31:54 +00:00
Kp
90300d54d9
Precompute fix_recip table
2014-06-23 04:46:07 +00:00
Kp
ef20958fcc
Refactor C++ standard test
2014-06-23 04:46:07 +00:00
Kp
fb89da37d1
Remove _may_repeat on check_cxx_works
...
self.__automatic_compiler_tests prevents repetition.
2014-06-22 21:05:25 +00:00
Kp
e6a691c5c7
Check that types passed to PHYSFS_write are POD
...
More is needed to trap some misuses, but those traps flag existing code.
2014-06-22 03:54:35 +00:00
Kp
5eb3c6267a
Remove C-only warnings
2014-06-08 00:05:33 +00:00
Kp
b5701bf202
Add __attribute__((warn_unused_result)) to partial_range
2014-06-08 00:05:33 +00:00
Kp
9b0fb5da0a
Write eclip structures carefully
2014-02-01 18:55:18 +00:00
Kp
917ef39258
Use array<> for Vclip
2014-01-23 03:48:25 +00:00
Kp
5cc3885478
Remove executable= in subprocess spawn; Windows handles it poorly
2014-01-07 04:12:39 +00:00
Kp
b3af37e976
Exclude library settings from DXXArchive environment
...
Archives link nothing, so this simplifies reaching the bug fixed in the
previous commit.
2014-01-04 18:04:04 +00:00
Kp
3fadf28751
Avoid KeyError when preserving an environment key that does not exist
2014-01-04 18:04:04 +00:00
Kp
8218af34b5
Add special type to let obj_*link take either pointer or index
2014-01-03 04:04:04 +00:00
Kp
1e8036bd24
Split compiler.h for PCH compatibility
2013-12-21 05:12:38 +00:00
Kp
fbf1f8a658
Annotate mem_malloc/calloc/realloc as __attribute__((alloc_size))
2013-12-20 03:33:32 +00:00
Kp
737fe73dd7
Annotate mem_malloc/mem_calloc as __attribute__((malloc))
2013-12-20 03:24:39 +00:00
Kp
c561c3d514
Move multi_send_data_direct type into template parameter
...
Optimizing compilers may now delete the size check.
2013-12-20 03:08:19 +00:00
Kp
2f18c5037d
Store group lists as countarray objects
2013-12-18 03:48:52 +00:00
Kp
e8de74b8bf
Reject inappropriate printf usage
2013-12-17 04:03:35 +00:00
Kp
9a189bcfd1
Unify SDL_mixer setup
2013-12-17 04:01:22 +00:00
Kp
08767eb1c5
Probe for libphysfs during configure stage
2013-12-17 04:01:22 +00:00
Kp
15e03d7e9a
Factor out configure functionality
2013-12-17 04:01:22 +00:00
Kp
b30639b0c4
Add special case to save CPPDEFINES to configure header
...
Avoid cluttering the command line by moving CPPDEFINES to the configure
header.
2013-12-15 21:53:20 +00:00
Kp
adee72c624
Move -pthread to be Linux only
2013-12-15 18:59:01 +00:00
Kp
f05b6f0008
Use on-stack bit array for tracking AI segment visits
2013-12-15 18:50:39 +00:00
Kp
f351cc024d
Add convenience alias 'dxx' to SConstruct
2013-12-15 18:46:42 +00:00
Kp
8a5644fc07
Only pass -Werror=redundant-decls if it works well
2013-12-13 03:59:49 +00:00
Kp
3f92639efc
Remove unnecessary PCH variable
2013-12-13 03:44:02 +00:00
Kp
8bd9f9bccd
Make vers_id.o depend on PCH if present
2013-12-13 03:44:02 +00:00
Kp
ac6fe9aca6
Test for compiler support for pre-compiled headers
...
Fix interaction of pre-compiled headers with configure-modified flags.
2013-12-13 03:44:02 +00:00
Kp
07877853ba
Use static_assert where available
2013-12-13 03:44:02 +00:00
Kp
e784dd4357
Remove C compiler handling from SConstruct
2013-12-13 03:44:02 +00:00
Kp
322c61ef01
Remove use of heap-based splitword
2013-12-08 21:43:53 +00:00
Kp
706b458699
Mark PHYSFSX_find* functions nonnull
2013-12-07 18:40:32 +00:00
Kp
7f5410cc8b
Use lengthof instead of sizeof(A)/sizeof(A[0])
...
The latter form can accept pointers, but the template lengthof cannot.
2013-12-07 18:38:10 +00:00
Kp
babbe8e9e6
Move */arch/carbon -> common/arch/carbon
2013-12-06 03:58:10 +00:00
Kp
18bf9b94ea
Move */arch/cocoa -> common/arch/cocoa
2013-12-06 03:57:18 +00:00
Kp
6e8684da0f
Remove duplicate FRAMEWORKS setup
2013-12-06 03:56:56 +00:00
Kp
d7ab757393
Remove Darwin physfs hacks
...
When physfs is in the library search path, the regular usage of adding
physfs to LIBS is sufficient.
2013-12-06 03:55:58 +00:00
Kp
a14acee361
Clean up install handling
2013-12-06 03:54:52 +00:00
Kp
320d22aae1
Move similar/main/collide.c -> similar/main/collide.cpp
2013-12-06 03:27:30 +00:00
Kp
fcf216474b
Move */main/collide.c -> similar/main/collide.c
2013-12-06 03:27:30 +00:00
Kp
517a8c1e37
Move similar/main/fireball.c -> similar/main/fireball.cpp
2013-12-06 03:27:30 +00:00
Kp
bd4029c922
Clean platform handling
2013-12-06 00:24:07 +00:00
Kp
c6d68ca288
Check for game-specific prefix before general ones
2013-12-06 00:24:07 +00:00
Kp
dc6ba09b62
Suppress duplicate registration of the same configuration prefix
2013-12-06 00:24:07 +00:00
Kp
0619afcc52
Remove repetitive short name in program setup
2013-12-06 00:24:07 +00:00
Kp
18aea17f9e
Move */main/fireball.c -> similar/main/fireball.c
2013-12-02 00:21:31 +00:00
Kp
ff9c15b51f
Move d2x-rebirth/libmve/mveplay.c -> d2x-rebirth/libmve/mveplay.cpp
2013-12-02 00:11:33 +00:00
Kp
22f3f78ac5
Move d2x-rebirth/libmve/mvelib.c -> d2x-rebirth/libmve/mvelib.cpp
2013-12-01 23:57:00 +00:00
Kp
59e4a8f1ba
Move d2x-rebirth/libmve/mve_audio.c -> d2x-rebirth/libmve/mve_audio.cpp
2013-12-01 23:57:00 +00:00
Kp
20a9c83182
Move d2x-rebirth/libmve/decoder8.c -> d2x-rebirth/libmve/decoder8.cpp
2013-12-01 23:57:00 +00:00
Kp
f65d7e8d5c
Move d2x-rebirth/libmve/decoder16.c -> d2x-rebirth/libmve/decoder16.cpp
2013-12-01 23:57:00 +00:00
Kp
8b50798bf7
Move d2x-rebirth/misc/physfsrwops.c -> d2x-rebirth/misc/physfsrwops.cpp
2013-12-01 23:56:17 +00:00
Kp
5fae3a5e28
Move similar/main/gamemine.c -> similar/main/gamemine.cpp
2013-12-01 23:55:50 +00:00
Kp
2ac98f7269
Move */main/gamemine.c -> similar/main/gamemine.c
2013-12-01 23:55:29 +00:00
Kp
6fda1ab889
Move similar/main/iff.c -> similar/main/iff.cpp
2013-12-01 23:32:56 +00:00
Kp
f99c2b739a
Move */iff/iff.c -> similar/main/iff.c
2013-12-01 23:24:51 +00:00
Kp
1b59de804b
Move d2x-rebirth/main/bmread.c -> d2x-rebirth/main/bmread.cpp
2013-12-01 23:24:33 +00:00
Kp
de366b12ee
Move d1x-rebirth/main/bmread.c -> d1x-rebirth/main/bmread.cpp
2013-12-01 23:24:33 +00:00
Kp
9db2badadb
Move similar/main/bm.c -> similar/main/bm.cpp
2013-12-01 22:52:54 +00:00
Kp
c258115b30
Move */main/bm.c -> similar/main/bm.c
2013-12-01 22:51:44 +00:00
Kp
e9f6a6ba13
Support stacking *FLAGS via site-local.py
2013-12-01 22:49:37 +00:00
Kp
25c731cc2c
Probe for usable array template
2013-12-01 22:42:47 +00:00
Kp
abd503dd0d
Record build environment in generated file
2013-12-01 00:56:24 +00:00
Kp
9fd6cfd59d
Move __STDC_FORMAT_MACROS to SConstruct for PCH compatibility
...
__STDC_FORMAT_MACROS is needed to enable PRIi64. __STDC_FORMAT_MACROS
must be set before including any headers, so when PCH is used, it must
be set on the command line.
2013-12-01 00:54:23 +00:00
Kp
c8225369c7
Fix flag restore in configure tests
2013-11-24 22:53:30 +00:00
Kp
6296dbc749
Do not document tests with leading underscore
2013-11-24 22:53:30 +00:00
Kp
ba1bbce571
Move similar/main/fuelcen.c -> similar/main/fuelcen.cpp
2013-11-24 22:51:56 +00:00
Kp
8f23539485
Propagate probed flags into all environments
2013-11-24 22:51:01 +00:00
Kp
2d920e5f7b
Move similar/main/gameseq.c -> similar/main/gameseq.cpp
2013-11-24 22:49:52 +00:00
Kp
aa05263b29
Move */main/gameseq.c -> similar/main/gameseq.c
2013-11-24 22:47:19 +00:00
Kp
53149e6bcd
Move similar/main/ai.c -> similar/main/ai.cpp
2013-11-23 22:47:45 +00:00
Kp
47a4bb1ff1
Move */main/ai.c -> similar/main/ai.c
2013-11-23 22:47:45 +00:00
Kp
5ff051cf4e
Move */main/fuelcen.c -> similar/main/fuelcen.c
2013-11-10 22:56:12 +00:00
Kp
bcd6ea5eed
Move similar/main/piggy.c -> similar/main/piggy.cpp
2013-11-10 19:08:12 +00:00
Kp
4ef3937d35
Move */main/piggy.c -> similar/main/piggy.c
2013-11-10 19:08:12 +00:00
Kp
313c36d8ee
Move d1x-rebirth/main/snddecom.c -> d1x-rebirth/main/snddecom.cpp
2013-11-09 18:07:28 +00:00
Kp
f720f937f5
Move d1x-rebirth/main/hostage.c -> d1x-rebirth/main/hostage.cpp
2013-11-09 18:07:28 +00:00
Kp
ee0f60ddb7
Move d1x-rebirth/main/custom.c -> d1x-rebirth/main/custom.cpp
2013-11-09 18:07:28 +00:00
Kp
e04dc4e29e
Move d2x-rebirth/main/escort.c -> d2x-rebirth/main/escort.cpp
2013-11-09 18:07:28 +00:00
Kp
a7eadf58f4
Move d2x-rebirth/main/gamepal.c -> d2x-rebirth/main/gamepal.cpp
2013-11-09 18:07:28 +00:00
Kp
2be7f31d29
Move d2x-rebirth/main/segment.c -> d2x-rebirth/main/segment.cpp
2013-11-09 18:07:28 +00:00
Kp
cbda2231a6
Move similar/main/endlevel.c -> similar/main/endlevel.cpp
2013-11-09 17:46:41 +00:00
Kp
ea2022bb01
Move */main/endlevel.c -> similar/main/endlevel.c
2013-11-09 17:46:41 +00:00
Kp
ea327d8394
Move d2x-rebirth/main/movie.c -> d2x-rebirth/main/movie.cpp
2013-11-09 17:45:21 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
a8d39f50bc
Remove unused file similar/editor/fixseg.cpp
2013-10-29 03:24:42 +00:00
Kp
00ed0c17ff
Mark reset_all_robot_centers as used for debuggers
2013-10-29 03:24:42 +00:00
Kp
36e9cfc552
Define WIN32_LEAN_AND_MEAN on Windows
2013-10-29 03:24:41 +00:00
Kp
e4834184f0
Avoid rescanning site-local.py
2013-10-28 04:14:20 +00:00
Kp
a701acce42
Save computed list of alternate names
2013-10-28 04:14:19 +00:00
Kp
6992e94106
Move help text filter out of line
2013-10-28 04:14:19 +00:00
Kp
3d20ee8c92
Move d1x-rebirth/editor/ehostage.c -> d1x-rebirth/editor/ehostage.cpp
2013-10-28 04:14:19 +00:00
Kp
b3838a060d
Add support for gcc pre-compiled headers
2013-10-28 04:14:17 +00:00
Kp
5165e36d04
Linux should always check SDL pkg-config
2013-10-28 04:11:23 +00:00
Kp
e4d0d345c9
Defer constructing object nodes
2013-10-26 03:50:27 +00:00
Kp
f17768b773
Move similar/misc/physfsx.c -> similar/misc/physfsx.cpp
2012-11-11 22:12:51 +00:00
Kp
5f842455d7
Move similar/misc/hash.c -> similar/misc/hash.cpp
2012-11-11 22:12:51 +00:00
Kp
3c6f3aef9b
Move similar/editor/texture.c -> similar/editor/texture.cpp
2012-11-17 06:14:09 +00:00
Kp
58ef5a08f0
Move similar/editor/texpage.c -> similar/editor/texpage.cpp
2012-11-17 06:14:09 +00:00
Kp
9a3e2520c0
Move similar/editor/seguvs.c -> similar/editor/seguvs.cpp
2012-11-17 06:14:09 +00:00
Kp
6f441fbef4
Move similar/editor/segment.c -> similar/editor/segment.cpp
2012-11-17 06:14:09 +00:00
Kp
fb7ffe9a2d
Move similar/editor/objpage.c -> similar/editor/objpage.cpp
2012-11-17 06:14:09 +00:00
Kp
e6bd6ba28f
Move similar/editor/mine.c -> similar/editor/mine.cpp
2012-11-17 06:14:09 +00:00
Kp
0e3ff174ae
Move similar/editor/medwall.c -> similar/editor/medwall.cpp
2012-11-17 06:14:09 +00:00
Kp
02f3ec94d1
Move similar/editor/medsel.c -> similar/editor/medsel.cpp
2012-11-17 06:14:09 +00:00
Kp
d52967da2d
Move similar/editor/medrobot.c -> similar/editor/medrobot.cpp
2012-11-17 06:14:09 +00:00
Kp
8ec699d7f1
Move similar/editor/medmisc.c -> similar/editor/medmisc.cpp
2012-11-17 06:14:09 +00:00
Kp
8f665fb65e
Move similar/editor/meddraw.c -> similar/editor/meddraw.cpp
2012-11-17 06:14:09 +00:00
Kp
980621b9d4
Move similar/editor/med.c -> similar/editor/med.cpp
2012-11-17 06:14:09 +00:00
Kp
3f67882964
Move similar/editor/kview.c -> similar/editor/kview.cpp
2012-11-17 06:14:09 +00:00
Kp
e19c1a57f0
Move similar/editor/ktmap.c -> similar/editor/ktmap.cpp
2012-11-17 06:14:09 +00:00
Kp
8744e5f55e
Move similar/editor/ksegsize.c -> similar/editor/ksegsize.cpp
2012-11-17 06:14:09 +00:00
Kp
d15e10f5e0
Move similar/editor/ksegsel.c -> similar/editor/ksegsel.cpp
2012-11-17 06:14:09 +00:00
Kp
492096e3a5
Move similar/editor/ksegmove.c -> similar/editor/ksegmove.cpp
2012-11-17 06:14:09 +00:00
Kp
d0303aef06
Move similar/editor/kmine.c -> similar/editor/kmine.cpp
2012-11-17 06:14:09 +00:00
Kp
b0b2c85a44
Move similar/editor/khelp.c -> similar/editor/khelp.cpp
2012-11-17 06:14:09 +00:00
Kp
bd014e36f0
Move similar/editor/kgame.c -> similar/editor/kgame.cpp
2012-11-17 06:14:09 +00:00
Kp
7de558490f
Move similar/editor/kfuncs.c -> similar/editor/kfuncs.cpp
2012-11-17 06:14:09 +00:00
Kp
48a88cc661
Move similar/editor/kcurve.c -> similar/editor/kcurve.cpp
2012-11-17 06:14:09 +00:00
Kp
d4abd6ae3a
Move similar/editor/kbuild.c -> similar/editor/kbuild.cpp
2012-11-17 06:14:09 +00:00
Kp
65b809b218
Move similar/editor/info.c -> similar/editor/info.cpp
2012-11-17 06:14:09 +00:00
Kp
f95d401926
Move similar/editor/group.c -> similar/editor/group.cpp
2012-11-17 06:14:09 +00:00
Kp
894570b14d
Move similar/main/weapon.c -> similar/main/weapon.cpp
2012-11-11 22:12:51 +00:00
Kp
6224fb3cef
Move similar/main/wall.c -> similar/main/wall.cpp
2012-11-11 22:12:51 +00:00
Kp
5c274d9b0f
Move similar/main/vers_id.c -> similar/main/vers_id.cpp
2012-11-11 22:12:51 +00:00
Kp
22868b959a
Move similar/main/vclip.c -> similar/main/vclip.cpp
2012-11-11 22:12:51 +00:00
Kp
c21da7e9df
Move similar/main/titles.c -> similar/main/titles.cpp
2012-11-11 22:12:51 +00:00
Kp
929c1eb813
Move similar/main/text.c -> similar/main/text.cpp
2012-11-11 22:12:51 +00:00
Kp
91da43ffa2
Move similar/main/texmerge.c -> similar/main/texmerge.cpp
2012-11-11 22:12:51 +00:00
Kp
4fb7db8a7c
Move similar/main/terrain.c -> similar/main/terrain.cpp
2012-11-11 22:12:51 +00:00
Kp
ea1566b247
Move similar/main/switch.c -> similar/main/switch.cpp
2012-11-11 22:12:51 +00:00
Kp
eaea6bd15b
Move similar/main/state.c -> similar/main/state.cpp
2012-11-11 22:12:51 +00:00
Kp
6a7bd1527a
Move similar/main/songs.c -> similar/main/songs.cpp
2012-11-11 22:12:51 +00:00
Kp
eb575861b8
Move similar/main/slew.c -> similar/main/slew.cpp
2012-11-11 22:12:51 +00:00
Kp
aaf5153865
Move similar/main/scores.c -> similar/main/scores.cpp
2012-11-11 22:12:51 +00:00
Kp
20bec34654
Move similar/main/robot.c -> similar/main/robot.cpp
2012-11-11 22:12:51 +00:00
Kp
e996814210
Move similar/main/render.c -> similar/main/render.cpp
2012-11-11 22:12:51 +00:00
Kp
d274115641
Move similar/main/powerup.c -> similar/main/powerup.cpp
2012-11-11 22:12:51 +00:00