Packages/Dead/globus/grid_storage_wrap.c
static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n)
{
  int i = 0;
  char temp[128];

  while (v->vars[i]) {
    if (strcmp(v->vars[i]->name,n) == 0) {
      return (*v->vars[i]->get_attr)();
    }
    i++;
  }
  sprintf(temp,"C global variable %s not found.", n);
  PyErr_SetString(PyExc_NameError,temp);
  return NULL;
}
/* --------------------------------------------------------------------
   swig_varlink_getattr
 
   This function gets the value of a variable and returns it as a
   PyObject.   In our case, we'll be looking at the datatype and
   converting into a number or string
   -------------------------------------------------------------------- */
swig_varlink_getattr
This function gets the value of a variable and returns it as a
PyObject.   In our case, we'll be looking at the datatype and
converting into a number or string
swig_varlink_getattr This function gets the value of a variable and returns it as a PyObject . In our case we ' ll be looking at the datatype and converting into a number or string
static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n)
{
  int i = 0;
  char temp[128];
  while (v->vars[i]) {
    if (strcmp(v->vars[i]->name,n) == 0) {
      return (*v->vars[i]->get_attr)();
    }
    i++;
  }
  sprintf(temp,"C global variable %s not found.", n);
  PyErr_SetString(PyExc_NameError,temp);
  return NULL;
}
static PyObject * swig_varlink_getattr ( swig_varlinkobject * v , char * n ) { int i = 0 ; char temp [ 128 ] ; while ( v -> vars [ i ] ) { if ( strcmp ( v -> vars [ i ] -> name , n ) == 0 ) { return ( * v -> vars [ i ] -> get_attr ) ( ) ; } i ++ ; } sprintf ( temp , " " , n ) ; PyErr_SetString ( PyExc_NameError , temp ) ; return NULL ; }
swig_varlink_getattr
This function gets the value of a variable and returns it as a
PyObject.
swig_varlink_getattr This function gets the value of a variable and returns it as a PyObject .