SDL/test
Sam Lantinga 68d7be3949 Fixed bug 3508 - variably modified ?SDL_dummy_size? at file scope in test/testatomic.c
Ciro Santilli

GCC 6, Ubuntu 16.10, cd test; ./configure; make

/bin/sh config.status Makefile
config.status: creating Makefile
gcc -o loopwave loopwave.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
gcc -o testatomic testatomic.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:32,
                 from testatomic.c:14:
/usr/include/SDL2/SDL_stdinc.h:261:20: error: variably modified ?SDL_dummy_size? at file scope
        typedef int SDL_dummy_ ## name[(x) * 2 - 1]
                    ^
testatomic.c:106:1: note: in expansion of macro ?SDL_COMPILE_TIME_ASSERT?
 SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */
 ^~~~~~~~~~~~~~~~~~~~~~~
Makefile:114: recipe for target 'testatomic' failed
make: *** [testatomic] Error 1

If I remove the line SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */ it works, lazy to figure out the best way to do this.
2016-12-06 00:40:09 -08:00
..
emscripten Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
nacl Fixed bug 3480 - minor update to NACL common.js 2016-11-05 01:48:14 -07:00
shapes Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
COPYING Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
Makefile.in audio: Initial bits to enable audio capture support. 2016-08-01 00:18:56 -04:00
README Fixed outdated information in README for test programs. 2015-12-07 21:43:16 +01:00
acinclude.m4 Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
aclocal.m4 Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
autogen.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
axis.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
button.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
checkkeys.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
configure Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
configure.in Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
controllermap.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
controllermap.c Added USB VID/PID information to the SDL test programs 2016-11-10 18:53:50 -08:00
gcc-fat.sh Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
icon.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
loopwave.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
loopwavequeue.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
moose.dat Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
picture.xbm Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
relative_mode.markdown Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
sample.bmp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
sample.wav Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testatomic.c Fixed bug 3508 - variably modified ?SDL_dummy_size? at file scope in test/testatomic.c 2016-12-06 00:40:09 -08:00
testaudiocapture.c Fixed log message in audio capture test program. 2016-08-30 21:16:04 +02:00
testaudiohotplug.c Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug 2016-10-01 12:29:55 -07:00
testaudioinfo.c Fixed bug 3322 - Missing error checking in testaudioinfo and testaudiohotplug 2016-10-01 12:29:55 -07:00
testautomation.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testautomation_audio.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_clipboard.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_events.c Removed empty statements in tests. 2016-10-12 23:36:49 +02:00
testautomation_hints.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_keyboard.c Removed empty statements in tests. 2016-10-12 23:36:49 +02:00
testautomation_main.c Fixed three source comments in tests. 2016-06-28 21:15:16 +02:00
testautomation_mouse.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_pixels.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_platform.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_rect.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_render.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_rwops.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_sdltest.c Removed empty statements in tests. 2016-10-12 23:36:49 +02:00
testautomation_stdlib.c Fixed three source comments in tests. 2016-06-28 21:15:16 +02:00
testautomation_suites.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_surface.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_syswm.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_timer.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testautomation_video.c Fixed freeing uninitialized pointers on failure cleanup in tests. 2015-10-07 21:16:59 +02:00
testbounds.c Added missing error return in test program. 2016-04-14 21:10:08 +02:00
testcustomcursor.c Modified the custom cursor test to be able to load BMP files as cursors 2016-10-04 04:08:02 -07:00
testdisplayinfo.c Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!). 2016-01-07 14:02:37 -05:00
testdraw2.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testdrawchessboard.c Removed not needed SDL_WINDOW_SHOWN from chessboard test program. 2016-03-28 21:02:30 +02:00
testdropfile.c Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops. 2016-01-05 01:42:00 -05:00
testerror.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testfile.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testfilesystem.c Fixed error return values in filesystem test program. 2016-05-10 21:12:48 +02:00
testgamecontroller.c Added an API to iterate over game controller mappings 2016-11-29 06:36:57 -08:00
testgesture.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testgl2.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testgles.c Fixed compiling of three test programs with C++. 2016-10-09 20:31:32 +02:00
testgles2.c Fixed compiling of three test programs with C++. 2016-10-09 20:31:32 +02:00
testhaptic.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testhittesting.c Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testhotplug.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testiconv.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testime.c Fixed compiling of three test programs with C++. 2016-10-09 20:31:32 +02:00
testintersections.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testjoystick.c Added USB VID/PID information to the SDL test programs 2016-11-10 18:53:50 -08:00
testkeys.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testloadso.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testlock.c Remove almost all instances of "volatile" keyword. 2016-01-03 06:50:50 -05:00
testmessage.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testmultiaudio.c Remove almost all instances of "volatile" keyword. 2016-01-03 06:50:50 -05:00
testnative.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testnative.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testnativecocoa.m Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
testnativew32.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testnativex11.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testoverlay2.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testplatform.c cpuinfo: first attempt at SDL_HasNEON() implementation. 2016-11-17 01:15:16 -05:00
testpower.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testqsort.c Fixed bug 3319 - Getting the POSIX out of testqsort.c 2016-10-01 12:33:26 -07:00
testrelative.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testrendercopyex.c Fixed compiling of three test programs with C++. 2016-09-21 23:06:38 +02:00
testrendertarget.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testresample.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testrumble.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testscale.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testsem.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testshader.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testshape.c Fixed crash in shape test program if memory allocation failed. 2016-05-10 21:13:58 +02:00
testsprite2.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testspriteminimal.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
teststreaming.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testthread.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testtimer.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testver.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testviewport.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
testwm2.c Tests: Mir needs the window to swap at lease 1 frame for the cursor to show. So render in testwm2 2016-07-13 07:07:46 -07:00
torturethread.c Remove almost all instances of "volatile" keyword. 2016-01-03 06:50:50 -05:00
utf8.txt Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00

README

These are test programs for the SDL library:

	checkkeys	Watch the key events to check the keyboard
	loopwave	Audio test -- loop playing a WAV file
	loopwavequeue	Audio test -- loop playing a WAV file with SDL_QueueAudio
	testaudioinfo	Lists audio device capabilities
	testerror	Tests multi-threaded error handling
	testfile	Tests RWops layer
	testgl2		A very simple example of using OpenGL with SDL
	testiconv	Tests international string conversion
	testjoystick	List joysticks and watch joystick events
	testkeys	List the available keyboard keys
	testloadso	Tests the loadable library layer
	testlock	Hacked up test of multi-threading and locking
	testmultiaudio	Tests using several audio devices
	testoverlay2	Tests the overlay flickering/scaling during playback.
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite2	Example of fast sprite movement on the screen
	testthread	Hacked up test of multi-threading
	testtimer	Test the timer facilities
	testver		Check the version and dynamic loading and endianness
	testwm2		Test window manager -- title, icon, events
	torturethread	Simple test for thread creation/destruction
	controllermap   Useful to generate Game Controller API compatible maps



This directory contains sample.wav, which is a sample from Will Provost's
song, The Living Proof:

     From the album The Living Proof
     Publisher: 5 Guys Named Will
     Copyright 1996 Will Provost

You can get a copy of the full song (and album!) from iTunes...

    https://itunes.apple.com/us/album/the-living-proof/id4153978

or Amazon...

    http://www.amazon.com/The-Living-Proof-Will-Provost/dp/B00004R8RH

Thanks to Will for permitting us to distribute this sample with SDL!