/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2753 by bramz, Wed Apr 11 18:57:04 2007 UTC revision 2754 by bramz, Wed Apr 11 19:04:12 2007 UTC
# Line 222  static PyObject* dbffile_add_field(DBFFi Line 222  static PyObject* dbffile_add_field(DBFFi
222          int type, width, decimals;          int type, width, decimals;
223          int field;          int field;
224                    
225          if (!PyArg_ParseTuple(args, "Uiii:add_field", &oname, &type, &width, &decimals)          if (!PyArg_ParseTuple(args, "Uiii:add_field", &oname, &type, &width, &decimals))
226                  && !PyArg_ParseTuple(args, "Siii:add_field", &oname, &type, &width, &decimals)) return NULL;          {
227                    PyErr_Clear();
228                    if (!PyArg_ParseTuple(args, "Siii:add_field", &oname, &type, &width, &decimals)) return NULL;
229            }
230                    
231          name = encode_string(self->handle, oname);          name = encode_string(self->handle, oname);
232          if (!name) return NULL;          if (!name) return NULL;

Legend:
Removed from v.2753  
changed lines
  Added in v.2754

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26