projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
float word order
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
filter.c
diff --git
a/ltt/branches/poly/lttv/lttv/filter.c
b/ltt/branches/poly/lttv/lttv/filter.c
index 556bf179502dd9aa3749bbe285c05ea2d976f9a2..06c8370c8f8ce960bfcc7f18f1bcc05f947f9993 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/filter.c
+++ b/
ltt/branches/poly/lttv/lttv/filter.c
@@
-74,6
+74,9
@@
#endif
#include <lttv/filter.h>
#endif
#include <lttv/filter.h>
+#include <ltt/trace.h>
+#include <stdlib.h>
+#include <string.h>
/**
* @fn LttvSimpleExpression* lttv_simple_expression_new()
/**
* @fn LttvSimpleExpression* lttv_simple_expression_new()
@@
-109,7
+112,7
@@
lttv_simple_expression_assign_field(GPtrArray* fp, LttvSimpleExpression* se) {
GString* f = NULL;
if(fp->len < 2) return FALSE;
GString* f = NULL;
if(fp->len < 2) return FALSE;
- g_assert(
f=g_ptr_array_remove_index(fp,0
));
+ g_assert(
(f=g_ptr_array_remove_index(fp,0)
));
/*
* Parse through the specified
/*
* Parse through the specified
@@
-376,7
+379,6
@@
lttv_simple_expression_assign_value(LttvSimpleExpression* se, char* value) {
gboolean is_double = FALSE;
LttTime t = ltt_time_zero;
GString* v;
gboolean is_double = FALSE;
LttTime t = ltt_time_zero;
GString* v;
- GQuark quark;
switch(se->field) {
/*
switch(se->field) {
/*
@@
-421,14
+423,14
@@
lttv_simple_expression_assign_value(LttvSimpleExpression* se, char* value) {
/* cannot specify number with more than one '.' */
if(is_double) return FALSE;
else is_double = TRUE;
/* cannot specify number with more than one '.' */
if(is_double) return FALSE;
else is_double = TRUE;
- t.tv_sec = atoi(v);
+ t.tv_sec = atoi(v
->str
);
g_string_free(v,TRUE);
v = g_string_new("");
} else g_string_append_c(v,value[i]);
}
/* number can be integer or double */
g_string_free(v,TRUE);
v = g_string_new("");
} else g_string_append_c(v,value[i]);
}
/* number can be integer or double */
- if(is_double) t.tv_nsec = atoi(v);
- else t.tv_sec = atoi(v);
+ if(is_double) t.tv_nsec = atoi(v
->str
);
+ else t.tv_sec = atoi(v
->str
);
g_string_free(v,TRUE);
g_string_free(v,TRUE);
This page took
0.022815 seconds
and
4
git commands to generate.