* Added submodule NMesh:

Partially implemented.  Most of it comes from opy_nmesh.c, plus needed
    changes to integrate in into exppython.
* Added helper submodule vector, needed by NMesh.
* Minor changes in other files.
This commit is contained in:
2003-05-17 04:29:49 +00:00
parent 7c48bec899
commit ed78dcc96c
19 changed files with 2500 additions and 350 deletions

View File

@@ -258,7 +258,7 @@ static PyObject *Text_getNLines(C_Text *self)
"couldn't get Text.nlines attribute");
}
static PyObject *Text_rename(C_Text *self, PyObject *args)
static PyObject *Text_setName(C_Text *self, PyObject *args)
{
char *name;
char buf[21];
@@ -426,7 +426,7 @@ static int TextSetAttr (C_Text *self, char *name, PyObject *value)
"TextSetAttr: couldn't create PyTuple");
if (strcmp (name, "name") == 0)
error = Text_rename (self, valtuple);
error = Text_setName (self, valtuple);
else { /* Error: no such member in the Text Data structure */
Py_DECREF(value);
Py_DECREF(valtuple);