From: siboud Date: Mon, 7 Feb 2005 04:03:13 +0000 (+0000) Subject: more work on filter.c X-Git-Tag: v0.12.20~2622 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e854143a6dc4743106cc775f37e3a2226cbb18c5;p=lttv.git more work on filter.c git-svn-id: http://ltt.polymtl.ca/svn@867 04897980-b3bd-0310-b5e0-8ef037075253 --- 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]); }