data type for commodities
Christian Stimming
stimming@uclink.berkeley.edu
Sun, 4 Feb 2001 16:54:26 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hi Bill,
As I recently said, I would like to have a new datatype defined for
representing a commodity and a value:
struct {
gnc_commodity* commodity;
gnc_numeric value;
} commodity-value;
Additionally, we would need a list of this type.
typedef GList<commodity-value[*]> commodity-value-list;
I am not yet sure about the names for the types. Name suggestions:
commodity_value, currency_value, commodity_numeric, commodity_num,
comm_num, whatever. We could discuss that on irc, but due to the time
difference that might be not that easy.
Nor do I know whether they should be handled as pointers or as values. I
guess you can judge that better.
I can implement most of the functions I need on this type in C. However, I
don't know where to put that and I don't know how to do the g-wrap stuff.
Could you please
1. add that two types in an appropriate place,
2. together with one or two functions on them,
3. and add the g-wrap stuff?
This would enable me to do everything else by myself. Oh, except that I
don't know much about GList -- where can I find more docs about that?
Christian
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBOn35ymXAi+BfhivFAQHDqwP/U6ljpjYICj1s4Ef9wzWzoyH76hthAEkd
sBY3EHYz+Pg9cmU5eVjse8bLZI+H+EdMT4pNfYzVkvLLyIRmHQCL1MWs6gIav7Kc
sS7pMPlAPGv1K1V3bhSrlxFW+ZmnZ92UiaCdqrjc5ZRO27wQNjsOF1l0/DLEt0Oc
zsxHrUml794=
=CKiM
-----END PGP SIGNATURE-----