| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
SVN revision: 67409
|
|
|
|
| |
SVN revision: 65202
|
|
|
|
|
|
|
| |
Patch by Fabien Romano
SVN revision: 65201
|
|
|
|
| |
SVN revision: 63398
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note: this function help keep a jump table so we reduce
the need to walk over the complete list to insert one
element. It's of course doesn't make it an O(log(n)) in
access time, but it increase it's cost more slowly.
With 10000 items, you can count around 50 pointers
dereferencing and with with 50000 items around 200 pointers
dereferencing.
Of course the comparison stay in O(log(n)).
SVN revision: 63213
|
|
|
|
| |
SVN revision: 59820
|
|
|
|
| |
SVN revision: 59669
|
|
|
|
| |
SVN revision: 59654
|
|
|
|
| |
SVN revision: 58540
|
|
|
|
| |
SVN revision: 58427
|
|
|
|
| |
SVN revision: 57825
|
|
|
|
| |
SVN revision: 56344
|
|
|
|
|
|
|
|
|
|
|
| |
Including eina_log.h in eina_inlist.c
Removing warning:
warning: implicit declaration of function ‘EINA_LOG_ERR’
If you do not include it, and compile eina with safety checks disabled,
Evas and Elementary will not find the EINA_LOG_ERR symbol when
compiling
SVN revision: 54995
|
|
|
|
| |
SVN revision: 54711
|
|
|
|
|
|
|
|
| |
patch by vtorry
compile testing frowned upon by andredieb
SVN revision: 52163
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following misspellings were fixed:
asociated->associated
convertion->conversion
exemple->example
existant->existent
immediatly->immediately
isnt->isn't
loosing->losing
memeber->member
occured->occurred
occurence->occurrence
occurences->occurrences
ocurred->occurred
recomended->recommended
sucess->success
teh->the
tiem->time
usefull->useful
SVN revision: 51962
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
|
|
|
|
|
|
|
| |
risk of ABI breakage.
SVN revision: 51390
|
|
|
|
| |
SVN revision: 50574
|
|
|
|
| |
SVN revision: 50573
|
|
|
|
|
|
|
|
| |
warnings during compile.
SVN revision: 45527
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Being able to indivually initialize individual modules was initially
"good", but at end it's putting complexities on users that would try
to "optimize" by doing just what they used, but in the end most people
would get them wrong, users would have to do lots of code and etc. At
the end it does not worth.
Most module init just register handful errors and log domains, so are
cheap. The exception is mempool users, that would dlopen() stuff, but
people that are concerned (embedded) can just compile those statically
in eina.
Since at the end any real application would use most of modules, we
actually end saving lots of function calls that would do nothing other
than increment a global counter.
I also did the init/shutdown use an array, making it easier to
maintain. The inital dependencies were analysed by a script I wrote, I
hope it's all right.
Please fix any breakages you find!
SVN revision: 42300
|
|
|
|
|
|
|
| |
* move eina_private.h and eina_safety_checks.h just after eina_config.h
SVN revision: 42077
|
|
|
|
| |
SVN revision: 41328
|
|
|
|
|
|
|
|
|
| |
This is the best we can do, but what should be done is to check if
element is really from that list.
SVN revision: 41326
|
|
|
|
|
|
|
| |
a lot of doc to write...
SVN revision: 41164
|
|
|
|
| |
SVN revision: 39465
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
safety checks will report null pointers and other error conditions on
public api's and can be disabled by compile time check.
note that in order to have these checks working we need to make
EINA_ARG_NONNULL() void, otherwise GCC can remove these checks since
they're known to be false.
This commit also make two minor changes:
* list and hash accessors and iterators are created even for empty
entities. This is correct in my point of view since NULL should
indicate error. Having these in were an optimziation, but not
worth it, these are not the most common case and hitting this path
is not of much cost.
* unmarked some parameters as nonnull, mainly on list and inlist.
SVN revision: 38327
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
eina_magic.h MUST include eina_config.h, otherwise it will not
consider EINA_MAGIC stuff. Worse than that, some files were including
that directly and were considering EINA_MAGIC attribute even if the
file that alloc'ed the memory were not!
Also add missing EINA_MAGIC_SET() to iterators and accessors.
SVN revision: 37960
|
|
|
|
| |
SVN revision: 36382
|
|
|
|
| |
SVN revision: 36084
|
|
|
|
|
|
|
|
| |
* eina_array_push() returns now a bool
* fix compilation
SVN revision: 35871
|
|
|
|
|
|
|
| |
* minor formatting
SVN revision: 35705
|
|
|
|
| |
SVN revision: 35455
|
|
|
|
| |
SVN revision: 35445
|
|
|
|
| |
SVN revision: 35360
|
|
|
|
| |
SVN revision: 35302
|
|
|
|
| |
SVN revision: 35253
|
|
SVN revision: 35248
|