Commit Graph

11591 Commits

Author SHA1 Message Date
Mike Blumenkrantz a6af8ecfd1 combine private headers
SVN revision: 53481
2010-10-16 04:42:34 +00:00
Mike Blumenkrantz 6614589c34 change internal log dom variable name
SVN revision: 53480
2010-10-16 04:38:11 +00:00
Mike Blumenkrantz 73e8abd5d9 handle some error conditions better to avoid segvs, add a little bit of info on watch creation failure, fix some return types to bools, clean up formatting failures
SVN revision: 53479
2010-10-16 04:18:26 +00:00
Mike Blumenkrantz 496e6350b2 giant doxy cleanup
SVN revision: 53478
2010-10-16 03:57:54 +00:00
Christopher Michael 50101673d4 Attempting to track a bug in ecore_x_randr_12 where we get a segfault
when trying to free the mode_info. Not much functional difference with
this commit except that we do not call strndup if the nameLength is
<= 0.



SVN revision: 53477
2010-10-15 23:19:45 +00:00
Mike Blumenkrantz 38c32c19a0 add info when generating dh params so people will know wtf is going on when their app hangs for an hour on startup
SVN revision: 53473
2010-10-15 21:31:25 +00:00
Iván Briano 44365ab591 Oh look, I had some docs to commit and forgot about them.
SVN revision: 53450
2010-10-15 13:24:51 +00:00
Carsten Haitzler 8be0e4590e remove changes in case developer dumber than expected?
:) (aagh was most annoying to find this today).



SVN revision: 53437
2010-10-15 07:42:29 +00:00
Carsten Haitzler be7683efbd you wouldnt believe it if i told you.. but put in a block to disallow
move or resize of an obj WHILE in the middle of a move or resize
already - some weird case someone has come up with where this happens
and things like smart clipped's "move relatvie by dx, dy" totally
screw up then. it's a totally unexpected case though. some circular
action has been created that logically shouldn't have existed.



SVN revision: 53434
2010-10-15 05:39:53 +00:00
Mike Blumenkrantz 1df6a75020 make this more explicit in case compiler is dumber than expected?
SVN revision: 53431
2010-10-14 22:13:40 +00:00
Rafael Fonseca 5b4996881e Add valgrind support to one_big mempool.
SVN revision: 53428
2010-10-14 19:28:32 +00:00
Rafael Fonseca 9733a55c22 Mark memory as accessable before popping it from stack.
When we push a memory to the trash stack we mark it as unaccessable. So we
should mark it as accessible before returning it to the user.



SVN revision: 53427
2010-10-14 19:24:00 +00:00
Rafael Fonseca 4bd0432caf Just mark memory as freed after actually freeing it.
Otherwise valgrind would complain about invalid memory access.



SVN revision: 53426
2010-10-14 19:19:13 +00:00
Cedric BAIL 94fb47d168 * ecore: improve and fix ecore_thread destruction.
SVN revision: 53411
2010-10-14 16:45:48 +00:00
Cedric BAIL 5ce901459c * ecore: don't leak pipe.
SVN revision: 53410
2010-10-14 16:45:17 +00:00
Mike Blumenkrantz 513bdc7da1 stop trying to use ssl for local connections
SVN revision: 53409
2010-10-14 16:19:17 +00:00
Cedric BAIL d88f751b16 * evas: prevent possible segv.
SVN revision: 53408
2010-10-14 15:52:10 +00:00
Rafael Fonseca 6485492cbe Make valgrind know about eina mempools.
Because mempools generally allocate a big memory area and distribute chunks of
that area to the users, valgrind can not know about logical invalid access. By
using some valgrind macros we can tell valgrind about mempools and which area
can be accessed or not.

To start with I have just done valgrind integration on chained mempool but soon
it will be done for one_big too.

The code below is an example on which valgrind wouldn't complain without this
patch:

@code
#include <Eina.h>

int
main(int argc, char *argv[])
{
    int i, *pool[4];
    Eina_Mempool *mp;

    eina_init();
    mp = eina_mempool_add("chained_mempool", "test", NULL, sizeof(int), 4);

    for (i = 0; i < 4; i++) {
        pool[i] = eina_mempool_malloc(mp, sizeof(int));
        *pool[i] = i;
    }

    printf("Valid mp pointer: pool[0] = %d\n", *pool[0]);
    eina_mempool_free(mp, pool[0]);
    printf("Freed mp pointer: pool[0] = %d\n", *pool[0]);

    for (i = 1; i < 4; i++)
        eina_mempool_free(mp, pool[i]);

    eina_mempool_del(mp);
    eina_shutdown();

    return 0;
}
@endcode



SVN revision: 53405
2010-10-14 15:18:15 +00:00
Cedric BAIL 6d6f5c7360 * AUTHORS: don't forget to blame T_UNIX for his work on xrandr.
SVN revision: 53403
2010-10-14 14:49:49 +00:00
Cedric BAIL 921c1a8c87 * evas: force the update to only affect the currently processed area.
WARNING: PLEASE REVIEW THAT PATCH !


SVN revision: 53402
2010-10-14 14:41:13 +00:00
Cedric BAIL 39a6e2df5a * eina: use pthread_equal.
SVN revision: 53400
2010-10-14 14:17:48 +00:00
Cedric BAIL c7245e24ed * eina: fix amalgamation build.
SVN revision: 53392
2010-10-14 11:07:10 +00:00
Davide Andreoli 740e1626a2 The daily edje example: EXTERNAL elm Panes.
SVN revision: 53391
2010-10-14 09:21:12 +00:00
Tom Hacohen 958b6c7569 Edje entry: Fixed a memory leak. Removed an unwanted selection clear, and renamed preedit strings functions to have a more adequate name. - Patch by Jihoon Kim.
SVN revision: 53390
2010-10-14 07:50:32 +00:00
Carsten Haitzler 6debefec1c fix stride - again. but no one noticed this one ... yet :)
SVN revision: 53388
2010-10-14 03:21:20 +00:00
Lucas De Marchi 0fccfcb4cf Fix bug in evas_smart_cb_descriptions_fix.
The last element of descriptions array was always removed.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 53379
2010-10-13 19:40:11 +00:00
Vincent Torri 4603fb6ecc remove useless file (copied when autogen.sh is run)
SVN revision: 53377
2010-10-13 19:06:51 +00:00
Mike Blumenkrantz addc8e47ed fix for new udev sigh
SVN revision: 53375
2010-10-13 18:56:36 +00:00
Mike Blumenkrantz 4e6e726145 hilarious typo that breaks the universe is now fixed
SVN revision: 53373
2010-10-13 18:34:03 +00:00
Cedric BAIL f3b720812e * e, eio: fix ecore_thread_run breakage.
SVN revision: 53371
2010-10-13 17:46:02 +00:00
Cedric BAIL 25e84c7f3d * ecore: fix possible race. It also make ecore_thread_run
match ecore_thread_feedback_run better.

	NOTE: I know it breaks API/ABI compatibility for that call,
	but that's the only sane solution I could found.


SVN revision: 53370
2010-10-13 17:45:07 +00:00
Cedric BAIL 75577ee618 * eio: remove unecessary call.
SVN revision: 53365
2010-10-13 16:45:45 +00:00
Cedric BAIL 00c7021fcb * ecore: turn on and off eina threads support when needed.
SVN revision: 53364
2010-10-13 16:44:15 +00:00
Mike Blumenkrantz e2662d1b7c 2 obscure bugs in one commit:
make cert use more overt and set up fd handler before attempting to use it


SVN revision: 53363
2010-10-13 16:40:52 +00:00
Cedric BAIL 7f9845c66f * eina: make Vincent happy.
SVN revision: 53362
2010-10-13 16:30:22 +00:00
Cedric BAIL f9b8578ea6 * eina: add assert to ease tracking down efl misuse with threads.
SVN revision: 53360
2010-10-13 15:35:56 +00:00
Cedric BAIL 625d84003e * evas: don't use eina_list in thread that's not safe.
SVN revision: 53359
2010-10-13 15:22:13 +00:00
Tom Hacohen 5dc604ff78 Evas text: Fixed inset handling.
SVN revision: 53357
2010-10-13 14:14:40 +00:00
Tom Hacohen 8d0492fcfd Evas textblock + font engine: Don't take inset into account when not needed.
SVN revision: 53353
2010-10-13 13:33:59 +00:00
Cedric BAIL a44992380f * eina: easy speed improvement by reducing operation of mempool.
SVN revision: 53349
2010-10-13 12:12:45 +00:00
Cedric BAIL a1c4588d64 * eio: fix use of ecore_thread_*run.
SVN revision: 53348
2010-10-13 10:59:33 +00:00
Cedric BAIL 0e7accd2ba * eina: don't bench ecore anymore as it's to slow.
SVN revision: 53346
2010-10-13 09:34:40 +00:00
Mike Blumenkrantz aff2d12d35 removal
SVN revision: 53344
2010-10-13 08:22:58 +00:00
Gustavo Sverzut Barbieri c30d8f6af6 init threads as we use them!
SVN revision: 53342
2010-10-13 06:14:56 +00:00
Gustavo Sverzut Barbieri 83270f5f45 seems that the other way was not enough.
I was still reaching uninitialized usage and it does make sense, as
the parent thread could be postponed until the new is started, then
the scanner/worker thread hits an error (ie: directory permission
denied) and it is cancelled before the main thread had time to get the
thread attribution (common->thread).

I'd like someone to look at it. Probably this is NOT the right way to
fix. Likely what we should do is send a "ready! start working" command
from the main thread to the worker thread and avoid such thing.


==5848== Conditional jump or move depends on uninitialised value(s)
==5848==    at 0x42808CD: ecore_thread_cancel (ecore_thread.c:534)
==5848==    by 0x4238558: eio_file_thread_error (eio_single.c:35)
==5848==    by 0x42368FC: _eio_file_direct_heavy (eio_file.c:78)
==5848==    by 0x42800F3: _ecore_feedback_job (ecore_thread.c:247)
==5848==    by 0x4280398: _ecore_thread_worker (ecore_thread.c:317)
==5848==    by 0x41FE16AE: start_thread (in /lib/libpthread-2.11.2.so)
==5848==    by 0x41F3295D: clone (in /lib/libc-2.11.2.so)
==5848==  Uninitialised value was created by a heap allocation
==5848==    at 0x400793F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==5848==    by 0x4237991: eio_file_direct_ls (eio_file.c:566)
==5848==    by 0x8051C81: ephoto_directory_thumb_add (ephoto_directory_thumb.c:131)
==5848==    by 0x804D4AB: _ephoto_thumb_dir_icon_get (ephoto_thumb_browser.c:75)
==5848==    by 0x405F4C8: _item_realize (elm_gengrid.c:807)
==5848==    by 0x405FE77: _item_place (elm_gengrid.c:980)
==5848==    by 0x40610F6: _pan_calculate (elm_gengrid.c:1199)
==5848==    by 0x418CA38: evas_call_smarts_calculate (evas_object_smart.c:843)
==5848==    by 0x41B23B2: evas_render_updates_internal (evas_render.c:971)
==5848==    by 0x41B3DA1: evas_render_updates (evas_render.c:1414)
==5848==    by 0x42E4550: _ecore_evas_x_render (ecore_evas_x.c:406)
==5848==    by 0x42DDD2C: _ecore_evas_idle_enter (ecore_evas.c:47)




SVN revision: 53340
2010-10-13 05:33:16 +00:00
Gustavo Sverzut Barbieri d037d75281 fix unitialized error.
==17972== Use of uninitialised value of size 4
==17972==    at 0x42918DB: ecore_thread_cancel (ecore_thread.c:536)
==17972==    by 0x4249558: eio_file_thread_error (eio_single.c:35)
==17972==    by 0x42478FC: _eio_file_direct_heavy (eio_file.c:78)
==17972==    by 0x42910F3: _ecore_feedback_job (ecore_thread.c:247)
==17972==    by 0x4291398: _ecore_thread_worker (ecore_thread.c:317)
==17972==    by 0x41FE16AE: start_thread (in /lib/libpthread-2.11.2.so)
==17972==    by 0x41F3295D: clone (in /lib/libc-2.11.2.so)
==17972==  Uninitialised value was created by a heap allocation
==17972==    at 0x400793F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==17972==    by 0x4248991: eio_file_direct_ls (eio_file.c:566)
==17972==    by 0x8050B8E: ephoto_directory_thumb_add (ephoto_directory_thumb.c:127)
==17972==    by 0x4061570: _item_realize (elm_gengrid.c:807)
==17972==    by 0x4061E27: _item_place (elm_gengrid.c:980)
==17972==    by 0x4062875: _pan_calculate (elm_gengrid.c:1199)
==17972==    by 0x419DA38: evas_call_smarts_calculate (evas_object_smart.c:843)
==17972==    by 0x41C33B2: evas_render_updates_internal (evas_render.c:971)
==17972==    by 0x41C4DA1: evas_render_updates (evas_render.c:1414)
==17972==    by 0x42F5550: _ecore_evas_x_render (ecore_evas_x.c:406)
==17972==    by 0x42EED2C: _ecore_evas_idle_enter (ecore_evas.c:47)
==17972==    by 0x428C85F: _ecore_idle_enterer_call (ecore_idle_enterer.c:129)




SVN revision: 53336
2010-10-13 03:56:24 +00:00
Mike Blumenkrantz a880b29c6e <discomfitor> ecore_con_url.c: In function 'ecore_con_url_ftp_upload':
<discomfitor> ecore_con_url.c:963:14: warning: too few arguments for format
<rakuco> ah, missing a , filename there
<rakuco> can you commit that


SVN revision: 53334
2010-10-13 03:04:53 +00:00
Mike Blumenkrantz 900242104f unify udev device creation to unclutter and significantly reduce codebase, some minor formatting fixes
SVN revision: 53333
2010-10-13 02:53:38 +00:00
Mike Blumenkrantz b98d451da0 tiny api addition to allow adding a data pointer to a watch
SVN revision: 53332
2010-10-13 02:53:35 +00:00
Mike Blumenkrantz 0e74073215 clean up includes and fix caps for log domain
SVN revision: 53331
2010-10-13 02:53:33 +00:00