[Python-checkins] r45267 - python/trunk/Include/asdl.h
anthony.baxter
python-checkins at python.org
Tue Apr 11 09:23:06 CEST 2006
Author: anthony.baxter
Date: Tue Apr 11 09:23:05 2006
New Revision: 45267
Modified:
python/trunk/Include/asdl.h
Log:
C++ already defines a perfectly good 'bool'. Use that.
Modified: python/trunk/Include/asdl.h
==============================================================================
--- python/trunk/Include/asdl.h (original)
+++ python/trunk/Include/asdl.h Tue Apr 11 09:23:05 2006
@@ -5,7 +5,9 @@
typedef PyObject * string;
typedef PyObject * object;
+#ifndef __cplusplus
typedef enum {false, true} bool;
+#endif
/* It would be nice if the code generated by asdl_c.py was completely
independent of Python, but it is a goal the requires too much work
More information about the Python-checkins
mailing list