[DGD]new arrays in extension kfuncs
Boris J
fuzzy at turbosport.com
Sat Jan 20 21:04:20 CET 2001
..I created dummy code of Erwin Harte's code to test the 'consept':
01: void kfunc(DGD_FRAME_T f, int nargs, DGD_VALUE_T *retval)
02: {
03:
04: DGD_ARRAY_T arr;
05: DGD_DATASPACE_T dataspace;
06: int i, total;
07: DGD_STRING_T str;
08:
09: dataspace = DGD_FRAME_DATASPACE(f);
10: total = 3;
11: arr = DGD_ARRAY_NEW(dataspace, total);
12: for (i=0;i<total;i++){
13: str = DGD_STRING_NEW("hej",3);
14: DGD_ARRAY_ASSIGN(dataspace, arr, i, str);
15: }
16: DGD_RETVAL_ARR(retval, arr);
17:
18: }
When I'm trying to compile it I get these error messages:
line 14: incompatible type for argument 3 of `d_assign_elt'
line 14: warning: passing arg 4 of `d_assign_elt' from incompatible
pointer type
What's wrong ? The above code seems valid to me :)
t.i.a.
Boris
******
Free web-based/POP3 mail from turbosport.com, turbomail.tv, mailplanet.net, and webmailcity.com.
For just $19.95 a year you can get this ad removed and 120 megs of space!!!
******
To report SPAM mail please send an e-mail to spam at turbosport.com.
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list