mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 10:15:22 -06:00
Previous swigged function- note the `new` is never deleted. Because they are both const char*, they must be swigged similarly to strings. static SCM _wrap_QOF_ID_BOOK_SCM () { #define FUNC_NAME "QOF-ID-BOOK-SCM" SCM gswig_result; SWIGUNUSED int gswig_list_p = 0; QofIdTypeConst result; result = QOF_ID_BOOK_SCM(); { QofIdTypeConst * resultptr; resultptr = new QofIdTypeConst((const QofIdTypeConst &) result); gswig_result = SWIG_NewPointerObj (resultptr, SWIGTYPE_p_QofIdTypeConst, 1); } return gswig_result; #undef FUNC_NAME } After this change: static SCM _wrap_QOF_ID_BOOK_SCM () { #define FUNC_NAME "QOF-ID-BOOK-SCM" SCM gswig_result; SWIGUNUSED int gswig_list_p = 0; QofIdType result; result = QOF_ID_BOOK_SCM(); gswig_result = result ? scm_from_utf8_string (result) : SCM_BOOL_F; return gswig_result; #undef FUNC_NAME } |
||
---|---|---|
.. | ||
cmake_modules | ||
debug | ||
test-core | ||
base-typemaps.i | ||
CMakeLists.txt | ||
config.h.cmake.in | ||
gnc-test-env.pl | ||
guile-mappings.h | ||
platform.h |