[Zodb-checkins] SVN: ZODB/trunk/src/BTrees/floatvaluemacros.h
Trimmed trailing whitespace.
Tim Peters
tim.one at comcast.net
Thu Dec 9 18:43:03 EST 2004
Log message for revision 28617:
Trimmed trailing whitespace.
Changed:
U ZODB/trunk/src/BTrees/floatvaluemacros.h
-=-
Modified: ZODB/trunk/src/BTrees/floatvaluemacros.h
===================================================================
--- ZODB/trunk/src/BTrees/floatvaluemacros.h 2004-12-09 21:53:45 UTC (rev 28616)
+++ ZODB/trunk/src/BTrees/floatvaluemacros.h 2004-12-09 23:43:03 UTC (rev 28617)
@@ -3,21 +3,21 @@
#define VALUE_TYPE float
#undef VALUE_TYPE_IS_PYOBJECT
-#define TEST_VALUE(K, T) (((K) < (T)) ? -1 : (((K) > (T)) ? 1: 0))
+#define TEST_VALUE(K, T) (((K) < (T)) ? -1 : (((K) > (T)) ? 1: 0))
#define VALUE_SAME(VALUE, TARGET) ( (VALUE) == (TARGET) )
#define DECLARE_VALUE(NAME) VALUE_TYPE NAME
#define VALUE_PARSE "f"
#define DECREF_VALUE(k)
#define INCREF_VALUE(k)
#define COPY_VALUE(V, E) (V=(E))
-#define COPY_VALUE_TO_OBJECT(O, K) O=PyFloat_FromDouble(K)
+#define COPY_VALUE_TO_OBJECT(O, K) O=PyFloat_FromDouble(K)
#define COPY_VALUE_FROM_ARG(TARGET, ARG, STATUS) \
if (PyFloat_Check(ARG)) TARGET = (float)PyFloat_AsDouble(ARG); \
else if (PyInt_Check(ARG)) TARGET = (float)PyInt_AsLong(ARG); \
else { \
PyErr_SetString(PyExc_TypeError, "expected float or int value"); \
- (STATUS)=0; (TARGET)=0; }
-
+ (STATUS)=0; (TARGET)=0; }
+
#define NORMALIZE_VALUE(V, MIN) ((MIN) > 0) ? ((V)/=(MIN)) : 0
#define MERGE_DEFAULT 1.0f
More information about the Zodb-checkins
mailing list