diff options
author | Sven Gothel <[email protected]> | 2023-11-28 12:08:55 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-11-28 12:08:55 +0100 |
commit | 1aa6f3080953eb4b3a4018b805a014c95dfce4dd (patch) | |
tree | 1d0035f9d1d9afd78d4234fd7dd5ccc14ffb4c86 /make | |
parent | 072c55ca78d57ce6cee44a83a78cffe1559f2b81 (diff) |
Bug 1475: Minor revision of orig patch-set
- Implement ALC.alcIsDoubleNullTerminatedString() in Java w/ our existing functionality,
drop JNI function
- JoalVersion.devicesToString(..) revert to original API
dropping boolean params
- C: Drop using stdbool.h, earmarked as obsolete in std
Diffstat (limited to 'make')
-rw-r--r-- | make/config/joal-alc-impl-CustomCCode.c | 5 | ||||
-rwxr-xr-x | make/scripts/tests.sh | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/make/config/joal-alc-impl-CustomCCode.c b/make/config/joal-alc-impl-CustomCCode.c index bd4a57a..bb36ff1 100644 --- a/make/config/joal-alc-impl-CustomCCode.c +++ b/make/config/joal-alc-impl-CustomCCode.c @@ -1,6 +1,5 @@ -#include <stdbool.h> -bool alc_is_double_null_terminated_string(ALCdevice *device, int param) { +static int alc_is_double_null_terminated_string(ALCdevice *device, int param) { return device == NULL && ( param == ALC_DEVICE_SPECIFIER || param == ALC_CAPTURE_DEVICE_SPECIFIER || @@ -10,7 +9,7 @@ bool alc_is_double_null_terminated_string(ALCdevice *device, int param) { int strlen_alc(ALCdevice *device, int param, const char* str) { int len = 0; - if (alc_is_double_null_terminated_string(device, param)) { + if ( alc_is_double_null_terminated_string(device, param) ) { while (*str != 0) { while (*str != 0) { ++str; diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index b015604..fbb39bf 100755 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -103,11 +103,11 @@ function testnormal() { } -#testnormal com.jogamp.openal.JoalVersion $* +testnormal com.jogamp.openal.JoalVersion $* #testnormal com.jogamp.openal.test.manual.OpenALTest $* #testnormal com.jogamp.openal.test.manual.Sound3DTest $* #testnormal com.jogamp.openal.test.manual.Synth01AL $* -testnormal com.jogamp.openal.test.manual.Synth02AL $* +#testnormal com.jogamp.openal.test.manual.Synth02AL $* #testnormal com.jogamp.openal.test.manual.Synth02bAL $* #testnormal com.jogamp.openal.test.junit.ALVersionTest $* #testnormal com.jogamp.openal.test.junit.ALutWAVLoaderTest $* |