scrcpy/app/tests
Romain Vimont c070723bc8 Add sc_vector
Adapt vlc_vector [1], that I initially wrote while implementing the VLC
playlist [2].

Change the implementation to use "statement expressions" [3], which are
forbidden in VLC because "non-standard", but:
 - they are supported by gcc and clang;
 - they are already used in the scrcpy codebase;
 - they avoid implementation hacks (VLC_VECTOR_FAILFLAG_);
 - they allow a better API (sc_vector_index_of() may return the result
   without an output parameter).

PR #3035 <https://github.com/Genymobile/scrcpy/pull/3035>

[1]: 0857947aba/include/vlc_vector.h
[2]: https://blog.rom1v.com/2019/05/a-new-core-playlist-for-vlc-4
[3]: https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
2022-02-20 23:59:35 +01:00
..
test_adb_parser.c Remove fprintf() in tests 2022-02-18 19:34:54 +01:00
test_buffer_util.c Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
test_cbuf.c Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
test_cli.c Rename SC_MOD_* to SC_SHORTCUT_MOD_* 2022-01-01 23:28:45 +01:00
test_clock.c Add clock tests 2021-07-14 14:54:22 +02:00
test_control_msg_serialize.c Use sc_ prefix for control_msg enums 2022-01-27 16:47:51 +01:00
test_device_msg_deserialize.c Add device clipboard set acknowledgement 2021-11-23 21:15:05 +01:00
test_queue.c Rename queue to sc_queue 2021-07-14 00:35:10 +02:00
test_str.c Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
test_strbuf.c Add missing includes 2021-11-24 21:44:29 +01:00
test_vector.c Add sc_vector 2022-02-20 23:59:35 +01:00