Commit 74425a52 authored by Jeremy Hylton's avatar Jeremy Hylton

Shouldn't user strcmp() to compare binary strings.

XXX Not sure where this macro is used or what kind of failures this
bug caused.
parent 648ae201
......@@ -13,7 +13,7 @@ typedef unsigned char char6[6];
/* Setup template macros */
#define MASTER_ID "$Id: _fsBTree.c,v 1.5 2002/11/13 16:32:03 jeremy Exp $\n"
#define MASTER_ID "$Id: _fsBTree.c,v 1.6 2003/04/04 21:41:54 jeremy Exp $\n"
#define PERSISTENT
......@@ -24,7 +24,7 @@ typedef unsigned char char6[6];
/*#include "intkeymacros.h"*/
#define KEYMACROS_H "$Id: _fsBTree.c,v 1.5 2002/11/13 16:32:03 jeremy Exp $\n"
#define KEYMACROS_H "$Id: _fsBTree.c,v 1.6 2003/04/04 21:41:54 jeremy Exp $\n"
#define KEY_TYPE char2
#undef KEY_TYPE_IS_PYOBJECT
#define KEY_CHECK(K) (PyString_Check(K) && PyString_GET_SIZE(K)==2)
......@@ -39,10 +39,10 @@ typedef unsigned char char6[6];
(STATUS)=0; }
/*#include "intvaluemacros.h"*/
#define VALUEMACROS_H "$Id: _fsBTree.c,v 1.5 2002/11/13 16:32:03 jeremy Exp $\n"
#define VALUEMACROS_H "$Id: _fsBTree.c,v 1.6 2003/04/04 21:41:54 jeremy Exp $\n"
#define VALUE_TYPE char6
#undef VALUE_TYPE_IS_PYOBJECT
#define TEST_VALUE(K, T) strncmp(K,T,6)
#define TEST_VALUE(K, T) memcmp(K,T,6)
#define DECLARE_VALUE(NAME) VALUE_TYPE NAME
#define DECREF_VALUE(k)
#define INCREF_VALUE(k)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment