Kaydet (Commit) 5fe2746e authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

yedek dosyam

üst 90a633a8
...@@ -40,7 +40,6 @@ typedef struct { ...@@ -40,7 +40,6 @@ typedef struct {
char *tagname; char *tagname;
} Iter; } Iter;
/*** Document Dealloc ***/
static void static void
Document_dealloc(Document *self) Document_dealloc(Document *self)
{ {
...@@ -48,7 +47,6 @@ Document_dealloc(Document *self) ...@@ -48,7 +47,6 @@ Document_dealloc(Document *self)
PyTypeObject* ob_type(PyObject *self); PyTypeObject* ob_type(PyObject *self);
} }
/*** Document Objects ***/
static PyTypeObject Document_type = { static PyTypeObject Document_type = {
PyVarObject_HEAD_INIT(NULL,0) PyVarObject_HEAD_INIT(NULL,0)
"piksemel.Document", /* tp_name */ "piksemel.Document", /* tp_name */
...@@ -90,8 +88,6 @@ static PyTypeObject Document_type = { ...@@ -90,8 +88,6 @@ static PyTypeObject Document_type = {
0 /* tp_new */ 0 /* tp_new */
}; };
/*** Iterators ***/
static PyObject * static PyObject *
Iter_iter(Iter *self) Iter_iter(Iter *self)
{ {
...@@ -121,8 +117,6 @@ Iter_next(Iter *self) ...@@ -121,8 +117,6 @@ Iter_next(Iter *self)
return new_node(self->doc, node); return new_node(self->doc, node);
} }
/*** Iterator Objects ***/
static PyTypeObject Iter_type = { static PyTypeObject Iter_type = {
PyVarObject_HEAD_INIT(NULL,0) PyVarObject_HEAD_INIT(NULL,0)
"piksemel.Iter", /* tp_name */ "piksemel.Iter", /* tp_name */
...@@ -164,8 +158,6 @@ static PyTypeObject Iter_type = { ...@@ -164,8 +158,6 @@ static PyTypeObject Iter_type = {
0 /* tp_new */ 0 /* tp_new */
}; };
/*** Piksemel Nodes ***/
static void static void
Node_dealloc(Node *self) Node_dealloc(Node *self)
{ {
...@@ -174,7 +166,6 @@ Node_dealloc(Node *self) ...@@ -174,7 +166,6 @@ Node_dealloc(Node *self)
} }
PyTypeObject* ob_type(PyObject *self); PyTypeObject* ob_type(PyObject *self);
} }
static PyObject * static PyObject *
Node_iter(Node *self) Node_iter(Node *self)
{ {
...@@ -193,7 +184,6 @@ Node_iter(Node *self) ...@@ -193,7 +184,6 @@ Node_iter(Node *self)
return (PyObject *)iter; return (PyObject *)iter;
} }
static PyObject * static PyObject *
Node_type_func(Node *self) Node_type_func(Node *self)
{ {
...@@ -718,6 +708,7 @@ Node_appendSiblingData(Node *self, PyObject *args) ...@@ -718,6 +708,7 @@ Node_appendSiblingData(Node *self, PyObject *args)
return new_node(self->doc, node); return new_node(self->doc, node);
} }
static PyObject * static PyObject *
Node_prependData(Node *self, PyObject *args) Node_prependData(Node *self, PyObject *args)
{ {
...@@ -766,8 +757,6 @@ Node_hide(Node *self, PyObject *args) ...@@ -766,8 +757,6 @@ Node_hide(Node *self, PyObject *args)
return Py_None; return Py_None;
} }
/*** Node Methodes ***/
static PyMethodDef Node_methods[] = { static PyMethodDef Node_methods[] = {
{ "type", (PyCFunction)Node_type_func, METH_NOARGS, { "type", (PyCFunction)Node_type_func, METH_NOARGS,
"Return the type of node." }, "Return the type of node." },
...@@ -869,13 +858,6 @@ static PyTypeObject Node_type = { ...@@ -869,13 +858,6 @@ static PyTypeObject Node_type = {
0 /* tp_new */ 0 /* tp_new */
}; };
static void
Document_dealloc(Document *self)
{
if (self->document) iks_delete(self->document);
PyTypeObject* ob_type(PyObject *self);
}
static PyObject * static PyObject *
new_node(Document *doc, iks *xml) new_node(Document *doc, iks *xml)
{ {
...@@ -972,6 +954,7 @@ static PyMethodDef methods[] = { ...@@ -972,6 +954,7 @@ static PyMethodDef methods[] = {
"Create a new document with given root tag name."}, "Create a new document with given root tag name."},
{ NULL, NULL, 0, NULL } { NULL, NULL, 0, NULL }
}; };
static struct PyModuleDef piksemelmodule ={ static struct PyModuleDef piksemelmodule ={
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"piksemel", "piksemel",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment