- Timestamp:
- 09/19/06 12:58:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pbs_wrap.c
r125 r126 3561 3561 int len=0, i; 3562 3562 3563 if (SARA_DEBUG) 3564 printf("Converteren char ** -> python list\n"); 3565 3566 3563 3567 if (result == NULL) 3564 3568 resultobj = PyList_New(0); … … 3566 3570 while (result[len]) 3567 3571 len++; 3568 3569 resultobj = PyList_New(len); 3570 for (i=0; i < len; i++ ) 3572 } 3573 3574 if (SARA_DEBUG) 3575 printf("\tSize of List: %d\n", len); 3576 3577 resultobj = PyList_New(len); 3578 if (SARA_DEBUG) 3579 printf("\t<Contents>\n"); 3580 for (i=0; i < len; i++ ) { 3571 3581 PyList_SetItem(resultobj, i , PyString_FromString(result[i])); 3582 if (SARA_DEBUG) 3583 printf("\t\t- %s\n", result[i]); 3572 3584 } 3585 if (SARA_DEBUG) 3586 printf("\t</Contents>\n"); 3573 3587 } 3574 3588 return resultobj;
Note: See TracChangeset
for help on using the changeset viewer.