gnucash/common
Christopher Lam 5bf9ca0b55 QofIdType and QofIdTypeConst: handle similarly to const char*
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
}
2023-12-11 22:45:59 +08:00
..
cmake_modules Add Scheme coverage collection with option GUILE_COVERAGE. 2023-12-08 14:55:49 -08:00
debug Fix various typos 2022-04-08 14:12:50 -04:00
test-core Fix cmake warnings while searching for python 2023-08-17 18:23:33 +02:00
base-typemaps.i QofIdType and QofIdTypeConst: handle similarly to const char* 2023-12-11 22:45:59 +08:00
CMakeLists.txt Make swig wrapper generation just another build step 2019-09-21 22:50:51 +02:00
config.h.cmake.in Refactor: Remove some unnecessary uses of memcpy 2023-06-15 11:10:58 +01:00
gnc-test-env.pl Fix typos for gnuchash/ doc/ bindings/ and misc. 2019-09-13 20:26:03 -04:00
guile-mappings.h Redefine some more buggy Guile string conversions. 2018-04-24 17:57:52 -07:00
platform.h gnc-uri - refer to 'scheme' instead of 'protocol' as that's the more formal term used in uris 2018-12-27 22:33:17 +01:00