Skip to content

Commit

Permalink
Move module methods into anonymous namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jokva committed Jan 26, 2018
1 parent c8d8616 commit 115503b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/segyio/segyio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1306,10 +1306,7 @@ PyObject* format( PyObject* , PyObject* args ) {
return out;
}

}

/* define functions in module */
static PyMethodDef SegyMethods[] = {
PyMethodDef SegyMethods[] = {
{ "binsize", (PyCFunction) binsize, METH_NOARGS, "Size of the binary header." },
{ "thsize", (PyCFunction) thsize, METH_NOARGS, "Size of the trace header." },
{ "textsize", (PyCFunction) textsize, METH_NOARGS, "Size of the text header." },
Expand All @@ -1326,6 +1323,8 @@ static PyMethodDef SegyMethods[] = {
{ NULL }
};

}

/* module initialization */
#ifdef IS_PY3K
static struct PyModuleDef segyio_module = {
Expand Down

0 comments on commit 115503b

Please sign in to comment.