Switch to unified view

a/src/rcldb/daterange.cpp b/src/rcldb/daterange.cpp
...
...
34
#include "debuglog.h"
34
#include "debuglog.h"
35
#include "rclconfig.h"
35
#include "rclconfig.h"
36
36
37
namespace Rcl {
37
namespace Rcl {
38
38
39
#ifdef RCL_INDEX_STRIPCHARS
40
#define bufprefix(BUF, L) {(BUF)[0] = L;}
41
#define bpoffs() 1
42
#else
43
static inline void bufprefix(char *buf, char c)
39
static inline void bufprefix(char *buf, char c)
44
{
40
{
45
    if (o_index_stripchars) {
41
    if (o_index_stripchars) {
46
    buf[0] = c;
42
    buf[0] = c;
47
    } else {
43
    } else {
...
...
52
}
48
}
53
static inline int bpoffs() 
49
static inline int bpoffs() 
54
{
50
{
55
    return o_index_stripchars ? 1 : 3;
51
    return o_index_stripchars ? 1 : 3;
56
}
52
}
57
#endif
58
53
59
Xapian::Query date_range_filter(int y1, int m1, int d1, int y2, int m2, int d2)
54
Xapian::Query date_range_filter(int y1, int m1, int d1, int y2, int m2, int d2)
60
{
55
{
61
    // Xapian uses a smallbuf and snprintf. Can't be bothered, we're
56
    // Xapian uses a smallbuf and snprintf. Can't be bothered, we're
62
    // only doing %d's !
57
    // only doing %d's !