src/inc/rql.h 1.5
1.5 2009/12/03 20:05:24 kent
Adding lm parameter to rqlEvalOnRecord since array operation uses memory.
Index: src/inc/rql.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/rql.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/inc/rql.h 3 Dec 2009 19:26:05 -0000 1.4
+++ src/inc/rql.h 3 Dec 2009 20:05:24 -0000 1.5
@@ -45,9 +45,8 @@
rqlOpUnaryMinusDouble,
/* Fancy ops to fetch sub-parts. */
rqlOpArrayIx, /* An array with an index. */
- rqlOpSubDot, /* A field.subfield selection. */
};
char *rqlOpToString(enum rqlOp op);
/* Return string representation of parse op. */
@@ -118,10 +117,11 @@
typedef char* (*RqlEvalLookup)(void *record, char *key);
/* Callback for rqlEvalOnRecord to lookup a variable value. */
-struct rqlEval rqlEvalOnRecord(struct rqlParse *p, void *record, RqlEvalLookup lookup);
-/* Evaluate self on ra. */
+struct rqlEval rqlEvalOnRecord(struct rqlParse *p, void *record, RqlEvalLookup lookup,
+ struct lm *lm);
+/* Evaluate parse tree on record, using lm for memory for string operations. */
struct rqlEval rqlEvalCoerceToBoolean(struct rqlEval r);
/* Return TRUE if it's a nonempty string or a non-zero number. */