mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add scheme/swig typemap for GDate.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19530 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ae0ff4cabe
commit
4b3ef0786d
@ -26,6 +26,8 @@ typedef char gchar;
|
||||
%typemap(in) Timespec "$1 = gnc_timepair2timespec($input);"
|
||||
%typemap(out) Timespec "$result = gnc_timespec2timepair($1);"
|
||||
|
||||
%typemap(in) GDate "$1 = gnc_timepair_to_GDate($input);"
|
||||
|
||||
%typemap(in) GncGUID "$1 = gnc_scm2guid($input);"
|
||||
%typemap(out) GncGUID "$result = gnc_guid2scm($1);"
|
||||
%typemap(in) GncGUID * (GncGUID g) " g = gnc_scm2guid($input); $1 = &g; "
|
||||
|
@ -111,6 +111,12 @@ gnc_timepair2timespec(SCM x)
|
||||
return(result);
|
||||
}
|
||||
|
||||
GDate gnc_timepair_to_GDate(SCM x)
|
||||
{
|
||||
Timespec tspec = gnc_timepair2timespec(x);
|
||||
return timespec_to_gdate(tspec);
|
||||
}
|
||||
|
||||
int
|
||||
gnc_timepair_p(SCM x)
|
||||
{
|
||||
|
@ -47,6 +47,7 @@ void gnc_transaction_set_date(Transaction *t, Timespec ts);
|
||||
|
||||
SCM gnc_timespec2timepair(Timespec t);
|
||||
Timespec gnc_timepair2timespec(SCM x);
|
||||
GDate gnc_timepair_to_GDate(SCM x);
|
||||
int gnc_timepair_p(SCM x);
|
||||
|
||||
SCM gnc_guid2scm(GncGUID guid);
|
||||
|
Loading…
Reference in New Issue
Block a user