swig/Examples/test-suite/c
Vadim Zeitlin aacc930023 Streamline and improve std::string typemaps
Avoid unnecessary heap allocations, just use temporary variables.

Actually update the string parameters passed by pointer/non-const
reference. This requires the pointers passed to actually be non-const,
so update the C-specific unit test runme to use a char buffer instead of
a literal string.

Also simplify the code copying the string contents to just use strdup()
(if there are ever any platforms where this POSIX functions is not
available, we could just define it ourselves once instead of using
strlen() + malloc() + memcpy() manually twice).
2021-12-05 03:31:35 +01:00
..
abstract_access_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
abstract_inherit_ok_runme.cxx Allow having C++ test cases for C backend 2021-11-19 00:08:43 +01:00
abstract_typedef_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
abstract_virtual_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
access_change_runme.c Fix previously unused access_change unit test runme file 2021-11-10 02:17:07 +01:00
add_link_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
anonymous_bitfield_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
c_backend_cpp_exception_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
c_backend_cpp_natural_std_string_runme.c Streamline and improve std::string typemaps 2021-12-05 03:31:35 +01:00
cast_operator_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
char_strings_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
cpp11_shared_ptr_const_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
cpp11_shared_ptr_upcast_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
cpp_basic_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
cpp_enum_runme.cxx Represent enums as enums, not int, if possible 2021-11-30 02:22:25 +01:00
enum_rename_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
enums_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
exception_order_runme.c Throw SWIG_CException from C++ wrappers automatically 2021-11-27 00:19:05 +01:00
global_vars_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
li_boost_shared_ptr_runme.cxx Convert li_boost_shared_ptr runtime test to C++ from C 2021-11-23 01:29:26 +01:00
li_std_map_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
li_std_pair_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
li_std_set_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
li_std_vector_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
Makefile.in Enable two previously failing tests that pass now 2021-11-30 02:29:31 +01:00
operator_overload_runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00