C and scheme for Timespec KVP type
Dave Peticolas
dave@krondo.com
21 Nov 2001 01:49:12 -0800
--=-NAyQAvCEZyMcaoq0ayh0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Tue, 2001-11-20 at 17:09, Derek Atkins wrote:
> Dave, here is my half of the Timespec KVP type. I think I got all the
> places where it's important. The type is KVP_TYPE_TIMESPEC and the
> new functions are kvp_value_new_timespec() and kvp_value_get_timespec()
>=20
> An interesting thing to note is that conversion between C types and
> scheme appears to happen in multiple places. For example, what's the
> difference between
> kvp_value * gnc_scm_to_kvp_value_ptr(SCM val) in kvp-scm.c, and
> gnc_scm2kvp_value (SCM value_scm) in engine-helpers.c?
>=20
> Similarly, the conversion from a kvp_valye -> SCM appears in both
> files as well. Weird, huh?
The one in engine-helpers is used to store kvp values
long-term in, say, a separate file. It lists types
explicitly. The one in kvp-scm.scm is intended for
run-time use and isn't complete. It tried to guess
kvp types from the scheme types.
dave
--=-NAyQAvCEZyMcaoq0ayh0
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA7+3iX5effKKCmfpIRAkL/AJ0ai/JJIygfKFqKmEwkwNEtyxIOGwCfQYVZ
bcGWxP+ZShpGo+qyE8ivZhE=
=lImW
-----END PGP SIGNATURE-----
--=-NAyQAvCEZyMcaoq0ayh0--