[DGD]Building a mapping in an extension function...
Felix A. Croes
felix at dworkin.nl
Thu Jun 14 17:55:02 CEST 2001
"Michael J. Bacon" <mj.bacon at gte.net> wrote:
> ... does anyone have any examples of how to build a new mapping in an
> extension?
>
> How do you initialize an empty mapping? "DGD_MAPPING_T map =
> DGD_MAPPING_NEW(NULL);" ? This seems to work I think...
The DGD_DATASPACE_T argument is not optional. You have to retrieve it
from the current frame, and supply it as an argument here.
> But how is the DGD_MAPPING_ASSIGN macro used? I can't get anything to
> compile with it at all.
mapping = DGD_MAPPING_NEW(data);
DGD_MAPPING_ASSIGN(data, mapping, index, value);
Regards,
Dworkin
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list