From e854143a6dc4743106cc775f37e3a2226cbb18c5 Mon Sep 17 00:00:00 2001 From: siboud Date: Mon, 7 Feb 2005 04:03:13 +0000 Subject: [PATCH] more work on filter.c git-svn-id: http://ltt.polymtl.ca/svn@867 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/filter.c | 49 +++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index a25b99c4..380cfe06 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -58,7 +58,6 @@ parse_simple_expression(GString* expression) { unsigned i; for(i=0;i, <, =, >=, <=, !=) + * - value */ for(i=0;i': /* higher, higher or equal */ + if(expression[i+1] == '=') { /* >= */ + i++; + current_expression.op = LTTV_FIELD_GE; + } else current_expression.op = LTTV_FIELD_GT; + break; + case '=': /* equal */ + current_expression.op = LTTV_FIELD_EQ; + break; + case default: /* concatening current string */ g_string_append_c(currentOption,expression[i]); } -- 2.34.1