Alien-SVN

 view release on metacpan or  search on metacpan

src/subversion/subversion/bindings/swig/python/svn_wc.c  view on Meta::CPAN

/* Error manipulation */

SWIGINTERN void 
SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
  SWIG_PYTHON_THREAD_BEGIN_BLOCK; 
  PyErr_SetObject(errtype, obj);
  Py_DECREF(obj);
  SWIG_PYTHON_THREAD_END_BLOCK;
}

SWIGINTERN void 
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
  PyErr_SetString(errtype, msg);
  SWIG_PYTHON_THREAD_END_BLOCK;
}

#define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)

/* Set a constant value */

#if defined(SWIGPYTHON_BUILTIN)

SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
  PyObject *s = PyString_InternFromString(key);
  PyList_Append(seq, s);
  Py_DECREF(s);
}

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {   
#if PY_VERSION_HEX < 0x02030000
  PyDict_SetItemString(d, (char *)name, obj);
#else
  PyDict_SetItemString(d, name, obj);
#endif
  Py_DECREF(obj);
  if (public_interface)
    SwigPyBuiltin_AddPublicSymbol(public_interface, name);
}

#else

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
#if PY_VERSION_HEX < 0x02030000
  PyDict_SetItemString(d, (char *)name, obj);
#else
  PyDict_SetItemString(d, name, obj);
#endif
  Py_DECREF(obj);                            
}

#endif

/* Append a value to the result obj */

SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
  if (!result) {
    result = obj;
  } else if (result == Py_None) {
    Py_DECREF(result);
    result = obj;
  } else {
    if (!PyList_Check(result)) {
      PyObject *o2 = result;
      result = PyList_New(1);
      PyList_SetItem(result, 0, o2);
    }
    PyList_Append(result,obj);
    Py_DECREF(obj);
  }
  return result;
#else
  PyObject*   o2;
  PyObject*   o3;
  if (!result) {
    result = obj;
  } else if (result == Py_None) {
    Py_DECREF(result);
    result = obj;
  } else {
    if (!PyTuple_Check(result)) {
      o2 = result;
      result = PyTuple_New(1);
      PyTuple_SET_ITEM(result, 0, o2);
    }
    o3 = PyTuple_New(1);
    PyTuple_SET_ITEM(o3, 0, obj);
    o2 = result;
    result = PySequence_Concat(o2, o3);
    Py_DECREF(o2);
    Py_DECREF(o3);
  }
  return result;
#endif
}

/* Unpack the argument tuple */

SWIGINTERN int
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
{
  if (!args) {
    if (!min && !max) {
      return 1;
    } else {
      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
		   name, (min == max ? "" : "at least "), (int)min);
      return 0;
    }
  }  
  if (!PyTuple_Check(args)) {
    if (min <= 1 && max >= 1) {
      register int i;
      objs[0] = args;
      for (i = 1; i < max; ++i) {
	objs[i] = 0;

src/subversion/subversion/bindings/swig/python/svn_wc.c  view on Meta::CPAN

  assert(metatype);
  Py_DECREF(metatype_args);
  metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
  assert(PyType_Ready(metatype) >= 0);
#endif
  
  /* Fix SwigMethods to carry the callback ptrs when needed */
  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
  
#if PY_VERSION_HEX >= 0x03000000
  m = PyModule_Create(&SWIG_module);
#else
  m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif
  md = d = PyModule_GetDict(m);
  (void)md;
  
  SWIG_InitializeModule(0);
  
#ifdef SWIGPYTHON_BUILTIN
  SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
  assert(SwigPyObject_stype);
  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
  if (!cd) {
    SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
    SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
  } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
    PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
# if PY_VERSION_HEX >= 0x03000000
    return NULL;
# else
    return;
# endif
  }
  
  /* All objects have a 'this' attribute */
  this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
  (void)this_descr;
  
  /* All objects have a 'thisown' attribute */
  thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
  (void)thisown_descr;
  
  public_interface = PyList_New(0);
  public_symbol = 0;
  (void)public_symbol;
  
  PyDict_SetItemString(md, "__all__", public_interface);
  Py_DECREF(public_interface);
  for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
  SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
  for (i = 0; swig_const_table[i].name != 0; ++i)
  SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
#endif
  
  SWIG_InstallConstants(d,swig_const_table);
  
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_FROM_NF",SWIG_From_long((long)(0x00000000)));
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_TO_NF",SWIG_From_long((long)(0x00000001)));
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_FORCE_EOL_REPAIR",SWIG_From_long((long)(0x00000002)));
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_NO_OUTPUT_CLEANUP",SWIG_From_long((long)(0x00000004)));
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_FORCE_COPY",SWIG_From_long((long)(0x00000008)));
  SWIG_Python_SetConstant(d, "SVN_WC_TRANSLATE_USE_GLOBAL_TMP",SWIG_From_long((long)(0x00000010)));
  SWIG_Python_SetConstant(d, "SVN_WC_ADM_DIR_NAME",SWIG_FromCharPtr(".svn"));
  SWIG_Python_SetConstant(d, "svn_wc_notify_add",SWIG_From_long((long)(svn_wc_notify_add)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_copy",SWIG_From_long((long)(svn_wc_notify_copy)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_delete",SWIG_From_long((long)(svn_wc_notify_delete)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_restore",SWIG_From_long((long)(svn_wc_notify_restore)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_revert",SWIG_From_long((long)(svn_wc_notify_revert)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_failed_revert",SWIG_From_long((long)(svn_wc_notify_failed_revert)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_resolved",SWIG_From_long((long)(svn_wc_notify_resolved)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_skip",SWIG_From_long((long)(svn_wc_notify_skip)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_delete",SWIG_From_long((long)(svn_wc_notify_update_delete)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_add",SWIG_From_long((long)(svn_wc_notify_update_add)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_update",SWIG_From_long((long)(svn_wc_notify_update_update)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_completed",SWIG_From_long((long)(svn_wc_notify_update_completed)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_external",SWIG_From_long((long)(svn_wc_notify_update_external)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_status_completed",SWIG_From_long((long)(svn_wc_notify_status_completed)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_status_external",SWIG_From_long((long)(svn_wc_notify_status_external)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_commit_modified",SWIG_From_long((long)(svn_wc_notify_commit_modified)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_commit_added",SWIG_From_long((long)(svn_wc_notify_commit_added)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_commit_deleted",SWIG_From_long((long)(svn_wc_notify_commit_deleted)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_commit_replaced",SWIG_From_long((long)(svn_wc_notify_commit_replaced)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_commit_postfix_txdelta",SWIG_From_long((long)(svn_wc_notify_commit_postfix_txdelta)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_blame_revision",SWIG_From_long((long)(svn_wc_notify_blame_revision)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_locked",SWIG_From_long((long)(svn_wc_notify_locked)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_unlocked",SWIG_From_long((long)(svn_wc_notify_unlocked)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_failed_lock",SWIG_From_long((long)(svn_wc_notify_failed_lock)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_failed_unlock",SWIG_From_long((long)(svn_wc_notify_failed_unlock)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_exists",SWIG_From_long((long)(svn_wc_notify_exists)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_changelist_set",SWIG_From_long((long)(svn_wc_notify_changelist_set)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_changelist_clear",SWIG_From_long((long)(svn_wc_notify_changelist_clear)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_changelist_moved",SWIG_From_long((long)(svn_wc_notify_changelist_moved)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_merge_begin",SWIG_From_long((long)(svn_wc_notify_merge_begin)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_foreign_merge_begin",SWIG_From_long((long)(svn_wc_notify_foreign_merge_begin)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_replace",SWIG_From_long((long)(svn_wc_notify_update_replace)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_property_added",SWIG_From_long((long)(svn_wc_notify_property_added)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_property_modified",SWIG_From_long((long)(svn_wc_notify_property_modified)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_property_deleted",SWIG_From_long((long)(svn_wc_notify_property_deleted)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_property_deleted_nonexistent",SWIG_From_long((long)(svn_wc_notify_property_deleted_nonexistent)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_revprop_set",SWIG_From_long((long)(svn_wc_notify_revprop_set)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_revprop_deleted",SWIG_From_long((long)(svn_wc_notify_revprop_deleted)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_merge_completed",SWIG_From_long((long)(svn_wc_notify_merge_completed)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_tree_conflict",SWIG_From_long((long)(svn_wc_notify_tree_conflict)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_failed_external",SWIG_From_long((long)(svn_wc_notify_failed_external)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_started",SWIG_From_long((long)(svn_wc_notify_update_started)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_skip_obstruction",SWIG_From_long((long)(svn_wc_notify_update_skip_obstruction)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_skip_working_only",SWIG_From_long((long)(svn_wc_notify_update_skip_working_only)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_skip_access_denied",SWIG_From_long((long)(svn_wc_notify_update_skip_access_denied)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_external_removed",SWIG_From_long((long)(svn_wc_notify_update_external_removed)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_shadowed_add",SWIG_From_long((long)(svn_wc_notify_update_shadowed_add)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_shadowed_update",SWIG_From_long((long)(svn_wc_notify_update_shadowed_update)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_update_shadowed_delete",SWIG_From_long((long)(svn_wc_notify_update_shadowed_delete)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_merge_record_info",SWIG_From_long((long)(svn_wc_notify_merge_record_info)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_upgraded_path",SWIG_From_long((long)(svn_wc_notify_upgraded_path)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_merge_record_info_begin",SWIG_From_long((long)(svn_wc_notify_merge_record_info_begin)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_merge_elide_info",SWIG_From_long((long)(svn_wc_notify_merge_elide_info)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_patch",SWIG_From_long((long)(svn_wc_notify_patch)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_patch_applied_hunk",SWIG_From_long((long)(svn_wc_notify_patch_applied_hunk)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_patch_rejected_hunk",SWIG_From_long((long)(svn_wc_notify_patch_rejected_hunk)));
  SWIG_Python_SetConstant(d, "svn_wc_notify_patch_hunk_already_applied",SWIG_From_long((long)(svn_wc_notify_patch_hunk_already_applied)));



( run in 0.810 second using v1.01-cache-2.11-cpan-ceb78f64989 )