Browse Source

ckdb - set mark base 32 code ascii sorted

master
kanoi 10 years ago
parent
commit
efe27652b4
  1. 4
      src/ckdb.h
  2. 2
      src/ckdb_data.c

4
src/ckdb.h

@ -1,5 +1,5 @@
/*
* Copyright 1995-2014 Andrew Smith
* Copyright 1995-2015 Andrew Smith
* Copyright 2014 Con Kolivas
*
* This program is free software; you can redistribute it and/or modify it
@ -52,7 +52,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "0.9.6"
#define CKDB_VERSION DB_VERSION"-0.820"
#define CKDB_VERSION DB_VERSION"-0.821"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

2
src/ckdb_data.c

@ -2870,7 +2870,7 @@ bool _marks_description(char *description, size_t siz, char *marktype,
#define CODEBASE 32
#define CODESHIFT(_x) ((_x) >> 5)
#define CODECHAR(_x) (codebase[((_x) & (CODEBASE-1))])
static char codebase[] = "2a3b4c5d6e7f8g9hjklmnpqrstuvwxyz";
static char codebase[] = "23456789abcdefghjkmnopqrstuvwxyz";
#define ASSERT3(condition) __maybe_unused static char codebase_length_must_be_CODEBASE[(condition)?1:-1]
ASSERT3(sizeof(codebase) == (CODEBASE+1));

Loading…
Cancel
Save