Changeset 276 for trunk/src/pbs_wrap_2.1.c
- Timestamp:
- 02/14/12 10:16:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pbs_wrap_2.1.c
r268 r276 3108 3108 } 3109 3109 SWIGINTERN void delete_attrl(struct attrl *self){ 3110 3111 3112 3113 3110 if (SARA_DEBUG) 3111 printf("Bas free attrl\n"); 3112 3113 /* 3114 3114 free(self); 3115 3115 */ 3116 3116 } 3117 3117 SWIGINTERN char *attropl___str__(struct attropl *self){ … … 3123 3123 } 3124 3124 SWIGINTERN void delete_attropl(struct attropl *self){ 3125 3126 3127 3128 3125 if (SARA_DEBUG) 3126 printf("Bas free attropl\n"); 3127 3128 /* 3129 3129 free(self); 3130 3130 */ 3131 3131 } 3132 3132 … … 3233 3233 result = (struct attrl *)new_attrl(arg1); 3234 3234 { 3235 PyObject 3236 struct attrl 3237 int 3235 PyObject *obj_batch; 3236 struct attrl *ptr; 3237 int i=0, len=0; 3238 3238 3239 3239 if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n"); … … 3252 3252 for (i=0; i < len; i++) { 3253 3253 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 3254 PyList_SetItem(resultobj, i, obj_batch); 3254 PyList_SetItem(resultobj, i, obj_batch); 3255 3255 if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name); 3256 3256 ptr = ptr->next; … … 3280 3280 result = (struct attropl *)new_attropl(arg1); 3281 3281 { 3282 PyObject 3283 struct attropl 3284 int 3282 PyObject *obj_batch; 3283 struct attropl *ptr; 3284 int i=0, len=0; 3285 3285 3286 3286 if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n"); … … 3298 3298 for (i=0; i < len; i++) { 3299 3299 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 3300 PyList_SetItem(resultobj, i, obj_batch); 3300 PyList_SetItem(resultobj, i, obj_batch); 3301 3301 ptr = ptr->next; 3302 3302 } … … 3316 3316 result = (struct batch_status *)new_batch_status(); 3317 3317 { 3318 PyObject *obj_batch;3319 struct batch_status *ptr;3320 int i=0, len=0;3318 PyObject *obj_batch; 3319 struct batch_status *ptr; 3320 int i=0, len=0; 3321 3321 3322 3322 // printf("Ja we are in bussniss\n"); … … 3340 3340 for (i=0; i < len; i++) { 3341 3341 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 3342 PyList_SetItem(resultobj, i, obj_batch); 3342 PyList_SetItem(resultobj, i, obj_batch); 3343 3343 if (SARA_DEBUG) { 3344 3344 printf("\t\t- %s\n", ptr->name); … … 3414 3414 result = (struct attrl *) ((arg1)->next); 3415 3415 { 3416 PyObject 3417 struct attrl 3418 int 3416 PyObject *obj_batch; 3417 struct attrl *ptr; 3418 int i=0, len=0; 3419 3419 3420 3420 if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n"); … … 3433 3433 for (i=0; i < len; i++) { 3434 3434 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 3435 PyList_SetItem(resultobj, i, obj_batch); 3435 PyList_SetItem(resultobj, i, obj_batch); 3436 3436 if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name); 3437 3437 ptr = ptr->next; … … 3776 3776 result = (struct attropl *) ((arg1)->next); 3777 3777 { 3778 PyObject 3779 struct attropl 3780 int 3778 PyObject *obj_batch; 3779 struct attropl *ptr; 3780 int i=0, len=0; 3781 3781 3782 3782 if (SARA_DEBUG) printf("Converteren c (struct attropl *) -> python:\n"); … … 3794 3794 for (i=0; i < len; i++) { 3795 3795 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attropl,1); 3796 PyList_SetItem(resultobj, i, obj_batch); 3796 PyList_SetItem(resultobj, i, obj_batch); 3797 3797 ptr = ptr->next; 3798 3798 } … … 4136 4136 result = (struct batch_status *) ((arg1)->next); 4137 4137 { 4138 PyObject *obj_batch;4139 struct batch_status *ptr;4140 int i=0, len=0;4138 PyObject *obj_batch; 4139 struct batch_status *ptr; 4140 int i=0, len=0; 4141 4141 4142 4142 // printf("Ja we are in bussniss\n"); … … 4160 4160 for (i=0; i < len; i++) { 4161 4161 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 4162 PyList_SetItem(resultobj, i, obj_batch); 4162 PyList_SetItem(resultobj, i, obj_batch); 4163 4163 if (SARA_DEBUG) { 4164 4164 printf("\t\t- %s\n", ptr->name); … … 4282 4282 result = (struct attrl *) ((arg1)->attribs); 4283 4283 { 4284 PyObject 4285 struct attrl 4286 int 4284 PyObject *obj_batch; 4285 struct attrl *ptr; 4286 int i=0, len=0; 4287 4287 4288 4288 if (SARA_DEBUG) printf("Converteren c (struct attrl *) -> python:\n"); … … 4301 4301 for (i=0; i < len; i++) { 4302 4302 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_attrl,1); 4303 PyList_SetItem(resultobj, i, obj_batch); 4303 PyList_SetItem(resultobj, i, obj_batch); 4304 4304 if (SARA_DEBUG) printf("\t\t- %s\n", ptr->name); 4305 4305 ptr = ptr->next; … … 4556 4556 arg2 = (char *)(buf2); 4557 4557 { 4558 PyObject 4559 struct attrl 4560 char 4561 int 4558 PyObject *py_obj; 4559 struct attrl *ptr, *prev; 4560 char s[255]; 4561 int i=0, size=0; 4562 4562 4563 4563 // printf("Python --> C\n"); … … 4917 4917 arg4 = (char *)(buf4); 4918 4918 { 4919 PyObject 4920 struct attropl 4921 char 4922 int 4919 PyObject *py_obj; 4920 struct attropl *ptr, *prev; 4921 char s[255]; 4922 int i=0, size=0; 4923 4923 4924 4924 // printf("Python --> C\n"); … … 5203 5203 arg1 = (int)(val1); 5204 5204 { 5205 int 5206 PyObject 5205 int i=0, size=0; 5206 PyObject *py_obj; 5207 5207 5208 5208 if (SARA_DEBUG) printf("Convert python -> c (char **):\n"); … … 5300 5300 arg1 = (int)(val1); 5301 5301 { 5302 int 5303 PyObject 5302 int i=0, size=0; 5303 PyObject *py_obj; 5304 5304 5305 5305 if (SARA_DEBUG) printf("Convert python -> c (char **):\n"); … … 5572 5572 arg1 = (int)(val1); 5573 5573 { 5574 PyObject 5575 struct attropl 5576 char 5577 int 5574 PyObject *py_obj; 5575 struct attropl *ptr, *prev; 5576 char s[255]; 5577 int i=0, size=0; 5578 5578 5579 5579 // printf("Python --> C\n"); … … 5728 5728 if (!PyArg_ParseTuple(args,(char *)"O:pbs_statfree",&obj0)) SWIG_fail; 5729 5729 { 5730 PyObject 5731 struct batch_status 5732 char 5733 int 5730 PyObject *py_obj; 5731 struct batch_status *ptr, *prev; 5732 char s[255]; 5733 int i=0, size=0; 5734 5734 5735 5735 // printf("Python --> C\n"); … … 5819 5819 arg2 = (char *)(buf2); 5820 5820 { 5821 PyObject 5822 struct attrl 5823 char 5824 int 5821 PyObject *py_obj; 5822 struct attrl *ptr, *prev; 5823 char s[255]; 5824 int i=0, size=0; 5825 5825 5826 5826 // printf("Python --> C\n"); … … 5875 5875 result = (struct batch_status *)pbs_statjob(arg1,arg2,arg3,arg4); 5876 5876 { 5877 PyObject *obj_batch;5878 struct batch_status *ptr;5879 int i=0, len=0;5877 PyObject *obj_batch; 5878 struct batch_status *ptr; 5879 int i=0, len=0; 5880 5880 5881 5881 // printf("Ja we are in bussniss\n"); … … 5899 5899 for (i=0; i < len; i++) { 5900 5900 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 5901 PyList_SetItem(resultobj, i, obj_batch); 5901 PyList_SetItem(resultobj, i, obj_batch); 5902 5902 if (SARA_DEBUG) { 5903 5903 printf("\t\t- %s\n", ptr->name); … … 5940 5940 arg1 = (int)(val1); 5941 5941 { 5942 PyObject 5943 struct attropl 5944 char 5945 int 5942 PyObject *py_obj; 5943 struct attropl *ptr, *prev; 5944 char s[255]; 5945 int i=0, size=0; 5946 5946 5947 5947 // printf("Python --> C\n"); … … 5996 5996 result = (struct batch_status *)pbs_selstat(arg1,arg2,arg3); 5997 5997 { 5998 PyObject *obj_batch;5999 struct batch_status *ptr;6000 int i=0, len=0;5998 PyObject *obj_batch; 5999 struct batch_status *ptr; 6000 int i=0, len=0; 6001 6001 6002 6002 // printf("Ja we are in bussniss\n"); … … 6020 6020 for (i=0; i < len; i++) { 6021 6021 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 6022 PyList_SetItem(resultobj, i, obj_batch); 6022 PyList_SetItem(resultobj, i, obj_batch); 6023 6023 if (SARA_DEBUG) { 6024 6024 printf("\t\t- %s\n", ptr->name); … … 6069 6069 arg2 = (char *)(buf2); 6070 6070 { 6071 PyObject 6072 struct attrl 6073 char 6074 int 6071 PyObject *py_obj; 6072 struct attrl *ptr, *prev; 6073 char s[255]; 6074 int i=0, size=0; 6075 6075 6076 6076 // printf("Python --> C\n"); … … 6125 6125 result = (struct batch_status *)pbs_statque(arg1,arg2,arg3,arg4); 6126 6126 { 6127 PyObject *obj_batch;6128 struct batch_status *ptr;6129 int i=0, len=0;6127 PyObject *obj_batch; 6128 struct batch_status *ptr; 6129 int i=0, len=0; 6130 6130 6131 6131 // printf("Ja we are in bussniss\n"); … … 6149 6149 for (i=0; i < len; i++) { 6150 6150 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 6151 PyList_SetItem(resultobj, i, obj_batch); 6151 PyList_SetItem(resultobj, i, obj_batch); 6152 6152 if (SARA_DEBUG) { 6153 6153 printf("\t\t- %s\n", ptr->name); … … 6190 6190 arg1 = (int)(val1); 6191 6191 { 6192 PyObject 6193 struct attrl 6194 char 6195 int 6192 PyObject *py_obj; 6193 struct attrl *ptr, *prev; 6194 char s[255]; 6195 int i=0, size=0; 6196 6196 6197 6197 // printf("Python --> C\n"); … … 6246 6246 result = (struct batch_status *)pbs_statserver(arg1,arg2,arg3); 6247 6247 { 6248 PyObject *obj_batch;6249 struct batch_status *ptr;6250 int i=0, len=0;6248 PyObject *obj_batch; 6249 struct batch_status *ptr; 6250 int i=0, len=0; 6251 6251 6252 6252 // printf("Ja we are in bussniss\n"); … … 6270 6270 for (i=0; i < len; i++) { 6271 6271 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 6272 PyList_SetItem(resultobj, i, obj_batch); 6272 PyList_SetItem(resultobj, i, obj_batch); 6273 6273 if (SARA_DEBUG) { 6274 6274 printf("\t\t- %s\n", ptr->name); … … 6319 6319 arg2 = (char *)(buf2); 6320 6320 { 6321 PyObject 6322 struct attrl 6323 char 6324 int 6321 PyObject *py_obj; 6322 struct attrl *ptr, *prev; 6323 char s[255]; 6324 int i=0, size=0; 6325 6325 6326 6326 // printf("Python --> C\n"); … … 6375 6375 result = (struct batch_status *)pbs_statnode(arg1,arg2,arg3,arg4); 6376 6376 { 6377 PyObject *obj_batch;6378 struct batch_status *ptr;6379 int i=0, len=0;6377 PyObject *obj_batch; 6378 struct batch_status *ptr; 6379 int i=0, len=0; 6380 6380 6381 6381 // printf("Ja we are in bussniss\n"); … … 6399 6399 for (i=0; i < len; i++) { 6400 6400 obj_batch = SWIG_NewPointerObj((void *)ptr, SWIGTYPE_p_batch_status,0); 6401 PyList_SetItem(resultobj, i, obj_batch); 6401 PyList_SetItem(resultobj, i, obj_batch); 6402 6402 if (SARA_DEBUG) { 6403 6403 printf("\t\t- %s\n", ptr->name); … … 6450 6450 arg1 = (int)(val1); 6451 6451 { 6452 PyObject 6453 struct attropl 6454 char 6455 int 6452 PyObject *py_obj; 6453 struct attropl *ptr, *prev; 6454 char s[255]; 6455 int i=0, size=0; 6456 6456 6457 6457 // printf("Python --> C\n");
Note: See TracChangeset
for help on using the changeset viewer.