diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2012-06-25 13:33:14 -0500 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2012-06-25 13:33:14 -0500 |
commit | 8006fd4e940cacf334a3683265948245e3a4fdc2 (patch) | |
tree | 8f25ca396e75d7bcfef3ac82bf4fd2c33991dcf4 | |
parent | eee46518b869ae05490c085783fd5b09a40b2273 (diff) | |
download | numpy-8006fd4e940cacf334a3683265948245e3a4fdc2.tar.gz |
Restore ability to not include semi-colons.
-rw-r--r-- | numpy/core/include/numpy/ndarraytypes.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h index 9605c20f8..354669d56 100644 --- a/numpy/core/include/numpy/ndarraytypes.h +++ b/numpy/core/include/numpy/ndarraytypes.h @@ -914,21 +914,21 @@ typedef int (PyArray_FinalizeFunc)(PyArrayObject *, PyObject *); #if NPY_ALLOW_THREADS #define NPY_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS #define NPY_END_ALLOW_THREADS Py_END_ALLOW_THREADS -#define NPY_BEGIN_THREADS_DEF PyThreadState *_save=NULL -#define NPY_BEGIN_THREADS do {_save = PyEval_SaveThread();} while (0) -#define NPY_END_THREADS do {if (_save) PyEval_RestoreThread(_save);} while (0) +#define NPY_BEGIN_THREADS_DEF PyThreadState *_save=NULL; +#define NPY_BEGIN_THREADS do {_save = PyEval_SaveThread();} while (0); +#define NPY_END_THREADS do {if (_save) PyEval_RestoreThread(_save);} while (0); #define NPY_BEGIN_THREADS_DESCR(dtype) \ do {if (!(PyDataType_FLAGCHK(dtype, NPY_NEEDS_PYAPI))) \ - NPY_BEGIN_THREADS;} while (0) + NPY_BEGIN_THREADS;} while (0); #define NPY_END_THREADS_DESCR(dtype) \ do {if (!(PyDataType_FLAGCHK(dtype, NPY_NEEDS_PYAPI))) \ - NPY_END_THREADS; } while (0) + NPY_END_THREADS; } while (0); -#define NPY_ALLOW_C_API_DEF PyGILState_STATE __save__ -#define NPY_ALLOW_C_API do {__save__ = PyGILState_Ensure();} while (0) -#define NPY_DISABLE_C_API do {PyGILState_Release(__save__);} while (0) +#define NPY_ALLOW_C_API_DEF PyGILState_STATE __save__; +#define NPY_ALLOW_C_API do {__save__ = PyGILState_Ensure();} while (0); +#define NPY_DISABLE_C_API do {PyGILState_Release(__save__);} while (0); #else #define NPY_BEGIN_ALLOW_THREADS #define NPY_END_ALLOW_THREADS |