Skip to content

Commit

Permalink
Merge branch 'stable-leaks' into stable #1839
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Jan 6, 2024
2 parents 0879570 + 5bf9ca0 commit 2918577
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/base-typemaps.i
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ typedef char gchar;
%typemap(in) time64 * (time64 t) "t = scm_to_int64($input); $1 = &t;"
%typemap(out) time64 * " $result = ($1) ? scm_from_int64(*($1)) : SCM_BOOL_F; "

%typemap(in) QofIdType " $1 = scm_to_utf8_string ($input); "
%typemap(out) QofIdType " $result = $1 ? scm_from_utf8_string ($1) : SCM_BOOL_F; "
%typemap(freearg) QofIdType " g_free ((gpointer)$1); "
%typemap(newfree) QofIdType " g_free ((gpointer)$1); "

%typemap(in) QofIdTypeConst " $1 = scm_to_utf8_string ($input); "
%typemap(out) QofIdTypeConst " $result = $1 ? scm_from_utf8_string ($1) : SCM_BOOL_F; "
%typemap(freearg) QofIdTypeConst " g_free ((gpointer)$1); "
%typemap(newfree) QofIdTypeConst " g_free ((gpointer)$1); "

%typemap(in) struct tm * (struct tm t, char *tzone) {
SCM tm = $input;
t.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
Expand Down

0 comments on commit 2918577

Please sign in to comment.