Changeset 124 for trunk/src


Ignore:
Timestamp:
09/13/06 12:47:38 (18 years ago)
Author:
bas
Message:

pbs_rescquery:

  • Improved argument handling.
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pbs_python.h

    r123 r124  
    328328
    329329extern int pbs_rescquery(int connect, char **IN, int nresc, int *OUTPUT,
    330         int *INPUT, int *INPUT, int *INPUT);
     330        int *OUTPUT, int *OUTPUT, int *OUTPUT);
    331331
    332332extern int pbs_rescreserve(int connect, char **IN, int nresc, resource_t *phandle);
  • trunk/src/pbs_wrap.c

    r123 r124  
    32263226    PyObject * obj1 = 0 ;
    32273227    PyObject * obj2 = 0 ;
    3228     PyObject * obj3 = 0 ;
    3229     PyObject * obj4 = 0 ;
    3230     PyObject * obj5 = 0 ;
    32313228   
    32323229    arg4 = &temp4; res4 = SWIG_NEWOBJ;
    3233     if(!PyArg_ParseTuple(args,(char *)"OOOOOO:pbs_rescquery",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
     3230    arg5 = &temp5; res5 = SWIG_NEWOBJ;
     3231    arg6 = &temp6; res6 = SWIG_NEWOBJ;
     3232    arg7 = &temp7; res7 = SWIG_NEWOBJ;
     3233    if(!PyArg_ParseTuple(args,(char *)"OOO:pbs_rescquery",&obj0,&obj1,&obj2)) goto fail;
    32343234    {
    32353235        arg1 = (int)(SWIG_As_int(obj0));
     
    32743274        if (SWIG_arg_fail(3)) SWIG_fail;
    32753275    }
    3276     {
    3277         if (!(SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_int,0) != -1)) {
    3278             temp5 = SWIG_As_int(obj3);
    3279             if (SWIG_arg_fail(5)) SWIG_fail;
    3280             arg5 = &temp5;
    3281             res5 = SWIG_NEWOBJ;
    3282         }
    3283     }
    3284     {
    3285         if (!(SWIG_ConvertPtr(obj4,(void **)(&arg6),SWIGTYPE_p_int,0) != -1)) {
    3286             temp6 = SWIG_As_int(obj4);
    3287             if (SWIG_arg_fail(6)) SWIG_fail;
    3288             arg6 = &temp6;
    3289             res6 = SWIG_NEWOBJ;
    3290         }
    3291     }
    3292     {
    3293         if (!(SWIG_ConvertPtr(obj5,(void **)(&arg7),SWIGTYPE_p_int,0) != -1)) {
    3294             temp7 = SWIG_As_int(obj5);
    3295             if (SWIG_arg_fail(7)) SWIG_fail;
    3296             arg7 = &temp7;
    3297             res7 = SWIG_NEWOBJ;
    3298         }
    3299     }
    33003276    result = (int)pbs_rescquery(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
    33013277   
     
    33053281    resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
    33063282    SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
     3283    resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
     3284    SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
     3285    resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
     3286    SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
     3287    resultobj = t_output_helper(resultobj, ((res7 == SWIG_NEWOBJ) ?
     3288    SWIG_From_int((*arg7)) : SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, 0)));
    33073289    {
    33083290        free( (char *) arg2);
Note: See TracChangeset for help on using the changeset viewer.