modules and objects.
#define Py_GCC_ATTRIBUTE(x) __attribute__(x)
#endif
+/* Eliminate end-of-loop code not reached warnings from SunPro C
+ * when using do{...}while(0) macros
+ */
+#ifdef __SUNPRO_C
+#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
+#endif
+
#endif /* Py_PYPORT_H */
* other compatibility work.
*/
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
#ifndef SRE_RECURSIVE
static char copyright[] =
#include "Python.h"
#include "structmember.h"
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
/* collections module implementation of a deque() datatype
Written and maintained by Raymond D. Hettinger <python@rcn.com>
Copyright (c) 2004 Python Software Foundation.
#include "Python.h"
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
typedef PyDictEntry dictentry;
typedef PyDictObject dictobject;
#include "Python.h"
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
#ifdef STDC_HEADERS
#include <stddef.h>
#else
All rights reserved.
*/
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
static PyObject *
set_update(PySetObject *so, PyObject *other)
{
#include "unicodeobject.h"
#include "ucnhash.h"
-#ifdef __SUNPRO_C
-#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
-#endif
-
#ifdef MS_WINDOWS
#include <windows.h>
#endif