projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a module to compute various statistics
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
hook.c
diff --git
a/ltt/branches/poly/lttv/hook.c
b/ltt/branches/poly/lttv/hook.c
index 5edc62303c5638163d40585d2995f42d210b7f10..dc9b3ac86fb123c06a16a43903c94902e3fc24c5 100644
(file)
--- a/
ltt/branches/poly/lttv/hook.c
+++ b/
ltt/branches/poly/lttv/hook.c
@@
-132,7
+132,7
@@
void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i)
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
{
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
{
- gboolean ret = FALSE;
+ gboolean ret
, sum_ret
= FALSE;
LttvHookClosure *c;
LttvHookClosure *c;
@@
-141,10
+141,11
@@
gboolean lttv_hooks_call(LttvHooks *h, void *call_data)
if(h != NULL) {
for(i = 0 ; i < h->len ; i++) {
c = &g_array_index(h, LttvHookClosure, i);
if(h != NULL) {
for(i = 0 ; i < h->len ; i++) {
c = &g_array_index(h, LttvHookClosure, i);
- ret = ret || c->hook(c->hook_data,call_data);
+ ret = c->hook(c->hook_data,call_data);
+ sum_ret = sum_ret || ret;
}
}
}
}
- return ret;
+ return
sum_
ret;
}
}
This page took
0.023417 seconds
and
4
git commands to generate.