summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis E. Oliphant <teoliphant@gmail.com>2012-06-25 13:33:14 -0500
committerTravis E. Oliphant <teoliphant@gmail.com>2012-06-25 13:33:14 -0500
commit8006fd4e940cacf334a3683265948245e3a4fdc2 (patch)
tree8f25ca396e75d7bcfef3ac82bf4fd2c33991dcf4 /numpy
parenteee46518b869ae05490c085783fd5b09a40b2273 (diff)
downloadnumpy-8006fd4e940cacf334a3683265948245e3a4fdc2.tar.gz
Restore ability to not include semi-colons.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/ndarraytypes.h16
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