projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused code sections
[yaz-moved-to-github.git]
/
src
/
cqltransform.c
diff --git
a/src/cqltransform.c
b/src/cqltransform.c
index
f17af20
..
8253e50
100644
(file)
--- a/
src/cqltransform.c
+++ b/
src/cqltransform.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-586,7
+586,6
@@
static int has_modifier(struct cql_node *cn, const char *name) {
return 0;
}
return 0;
}
-
static void emit_term(cql_transform_t ct,
struct cql_node *cn,
const char *term, int length,
static void emit_term(cql_transform_t ct,
struct cql_node *cn,
const char *term, int length,
@@
-600,6
+599,8
@@
static void emit_term(cql_transform_t ct,
if (has_modifier(cn, "regexp"))
process_term = 0;
if (has_modifier(cn, "regexp"))
process_term = 0;
+ else if (has_modifier(cn, "unmasked"))
+ process_term = 0;
else if (cql_lookup_property(ct, "truncation", 0, "cql"))
{
process_term = 0;
else if (cql_lookup_property(ct, "truncation", 0, "cql"))
{
process_term = 0;
@@
-609,7
+610,7
@@
static void emit_term(cql_transform_t ct,
assert(cn->which == CQL_NODE_ST);
if (process_term)
assert(cn->which == CQL_NODE_ST);
if (process_term)
- {
+ { /* convert term via truncation.things */
unsigned anchor = 0;
unsigned trunc = 0;
for (i = 0; i < length; i++)
unsigned anchor = 0;
unsigned trunc = 0;
for (i = 0; i < length; i++)