diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/nissy_module.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/nissy_module.c b/python/nissy_module.c index 5378c72..bf5a71a 100644 --- a/python/nissy_module.c +++ b/python/nissy_module.c | |||
| @@ -138,7 +138,7 @@ applytrans(PyObject *self, PyObject *args) | |||
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | PyDoc_STRVAR(getcube_doc, | 140 | PyDoc_STRVAR(getcube_doc, |
| 141 | "getcube(ep, eo, cp, co, options)\n" | 141 | "getcube(ep, eo, cp, co, orientation, options)\n" |
| 142 | "--\n\n" | 142 | "--\n\n" |
| 143 | "Constructs the cube from the given coordinates and options\n" | 143 | "Constructs the cube from the given coordinates and options\n" |
| 144 | "\n" | 144 | "\n" |
| @@ -147,6 +147,7 @@ PyDoc_STRVAR(getcube_doc, | |||
| 147 | " - eo: the edge orientation coordinate\n" | 147 | " - eo: the edge orientation coordinate\n" |
| 148 | " - cp: the corner permutation coordinate\n" | 148 | " - cp: the corner permutation coordinate\n" |
| 149 | " - co: the corner orientation coordinate\n" | 149 | " - co: the corner orientation coordinate\n" |
| 150 | " - orientation: the orientation of the cube\n" | ||
| 150 | " - options: a string, for example \"fix\"\n" | 151 | " - options: a string, for example \"fix\"\n" |
| 151 | "\n" | 152 | "\n" |
| 152 | "Returns: the cube constructed from the given coordinates\n" | 153 | "Returns: the cube constructed from the given coordinates\n" |
| @@ -154,14 +155,15 @@ PyDoc_STRVAR(getcube_doc, | |||
| 154 | static PyObject * | 155 | static PyObject * |
| 155 | getcube(PyObject *self, PyObject *args) | 156 | getcube(PyObject *self, PyObject *args) |
| 156 | { | 157 | { |
| 157 | long long ep, eo, cp, co, err; | 158 | long long ep, eo, cp, co, or, err; |
| 158 | const char *options; | 159 | const char *options; |
| 159 | char result[NISSY_SIZE_CUBE]; | 160 | char result[NISSY_SIZE_CUBE]; |
| 160 | 161 | ||
| 161 | if (!PyArg_ParseTuple(args, "LLLLs", &ep, &eo, &cp, &co, &options)) | 162 | if (!PyArg_ParseTuple( |
| 163 | args, "LLLLLs", &ep, &eo, &cp, &co, &or, &options)) | ||
| 162 | return NULL; | 164 | return NULL; |
| 163 | 165 | ||
| 164 | err = nissy_getcube(ep, eo, cp, co, options, result); | 166 | err = nissy_getcube(ep, eo, cp, co, or, options, result); |
| 165 | return string_result(err, result); | 167 | return string_result(err, result); |
| 166 | } | 168 | } |
| 167 | 169 | ||
