edje - signal match code - clean up function readablity and fix crash
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 11 Nov 2015 05:38:17 +0000 (14:38 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 11 Nov 2015 05:57:52 +0000 (14:57 +0900)
commit80ebf5b4531384bebac4f4b851d3489b98f3eb99
tree8e89550a9f2d33800e9e28bd37416e4079dcf190
parent8b1b8d5cf04f5e176cc4de6c04790e90eeac4ff2
edje - signal match code - clean up function readablity and fix crash

this just clens up the _edje_signal_callback_push() to be simpler and
less wordy with the same actual logic, just pointless things like
return; at end of func removed, use tmp instead of gp->matches
everywhere and not just in one section etc.

also set hashed bool to eina true/false i as opposed to sometimes 0,
sometimes eina true/false and also track it religiously as well as
matches array when freed - hunting bug

for whatever reason after these cleanups i can't reproduce a signal
crash i had which seemed to find freed matches in the hash that should
not have been there. (a hash find walking a bucket found freed memory
for the match in the hash entry - should not have been though reading
the code).

@fix
src/lib/edje/edje_signal.c