~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/ptr_cmp.c

Merged vcol stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/*
17
17
  get_ptr_compare(len) returns a pointer to a optimal byte-compare function
19
19
  The bytes are compare as unsigned chars.
20
20
  */
21
21
 
22
 
#include "config.h"
23
 
#include "drizzled/internal/my_sys.h"
24
 
 
25
 
#include <assert.h>
26
 
 
27
 
#include "plugin/myisam/myisampack.h"
28
 
 
29
 
namespace drizzled
30
 
{
31
 
namespace internal
32
 
{
 
22
#include "mysys_priv.h"
 
23
#include <storage/myisam/myisampack.h>
33
24
 
34
25
static int ptr_compare(size_t *compare_length, unsigned char **a, unsigned char **b);
35
26
static int ptr_compare_0(size_t *compare_length, unsigned char **a, unsigned char **b);
54
45
 
55
46
 
56
47
        /*
57
 
          Compare two keys to see which is smaller.
 
48
          Compare to keys to see witch is smaller.
58
49
          Loop unrolled to make it quick !!
59
50
        */
60
51
 
199
190
 return pos;
200
191
}
201
192
 
202
 
} /* namespace internal */
203
 
} /* namespace drizzled */