Commit Graph

551 Commits

Author SHA1 Message Date
Cedric BAIL 20566e914b eet: use eina_lock.
SVN revision: 59378
2011-05-14 09:07:51 +00:00
Carsten Haitzler c2425b1fac dont use old evas.h in docs.
SVN revision: 58955
2011-04-27 11:20:42 +00:00
Cedric BAIL 123b2429b8 eet: remove uneeded Evas.h.
SVN revision: 58950
2011-04-27 09:44:37 +00:00
Carsten Haitzler 9ab702b233 better docs
SVN revision: 58707
2011-04-18 11:23:56 +00:00
Carsten Haitzler b504157045 more of eet docs in .h - all of it minus examples actually.
SVN revision: 58475
2011-04-08 06:21:40 +00:00
Carsten Haitzler c551a992a8 improve docs.
SVN revision: 57794
2011-03-16 12:05:56 +00:00
Cedric BAIL 2316172755 eet: remove warning of unused code.
NOTE: keeping the code around as it may be usefull.


SVN revision: 57236
2011-02-22 12:23:12 +00:00
Cedric BAIL f09a81bf54 * eet: improve speed and memory usage when decoding EET_G_UNION,
EET_G_VAR_ARRAY and EET_G_ARRAY.

	This change has a direct impact on load time for Edje file. So
	please test it and report any issue.


SVN revision: 57013
2011-02-14 10:57:13 +00:00
Sebastian Dransfeld 6dbbb69012 remove double declared ret
SVN revision: 56702
2011-02-03 23:16:15 +00:00
Sebastian Dransfeld ae202461f1 prefix macro generated variable with __
SVN revision: 56701
2011-02-03 23:16:04 +00:00
Sebastian Dransfeld a65b05a13d formatting
SVN revision: 56700
2011-02-03 23:15:53 +00:00
Vincent Torri eba92a95f3 Use eina_stringshare_add() instead of strdup() on mmaped file
names on Windows. This fix eet shut down on Windows.

SVN revision: 56380
2011-01-29 17:31:55 +00:00
ChunEon Park bdf92b1ed7 Fix invalid pointer ref
Patch by: ChunEon Park <chuneon.park@samsung.com>



SVN revision: 56249
2011-01-21 01:01:12 +00:00
Vincent Torri b1b5620045 put again eet tests in the source tree
SVN revision: 56194
2011-01-16 18:16:11 +00:00
Carsten Haitzler 6502ea96ea hve to revert these commits. they hve created a whole chunk of 64bit
crashes on linux. this is REALLY bad. so remove these changes now.



SVN revision: 55981
2011-01-07 15:56:54 +00:00
Vincent Torri 504f0a20f9 use configure-time headers checks instead of compiler ones
SVN revision: 55968
2011-01-07 06:33:00 +00:00
Carsten Haitzler dac7737514 move eet tests to TEST dir too. same reasons as for ecore tests going.
SVN revision: 55636
2010-12-19 02:58:16 +00:00
Vincent Torri d88618afc5 EINA_MAGIC is already defined with a ';'. Remove it to fix
compilation with vc++

SVN revision: 55490
2010-12-11 07:58:41 +00:00
Carsten Haitzler e15da11630 use typedefs for fn pointers.
SVN revision: 55342
2010-12-07 06:39:18 +00:00
Cedric BAIL 98f2dfecd7 * eet: improve detection of -Wl,--as-needed
SVN revision: 55214
2010-12-03 18:27:17 +00:00
Cedric BAIL 46fd048e2c * eet: Improve speed of eet_data_read decoding. Mostly for array.
NOTE: with a major rewrite of the way array does the structure
	allocation/destruction it could be made much faster. That would
	improve speed for both edje file loading and efreet cache loading.
	But I will postpone that for after the release.


SVN revision: 55069
2010-11-29 18:38:24 +00:00
Cedric BAIL 1413e6f3b7 * eet: improve speed for Eet_String users.
SVN revision: 55063
2010-11-29 14:04:16 +00:00
Cedric BAIL fbfa54bc05 * eet: another forgotten improvement.
SVN revision: 55017
2010-11-26 14:45:15 +00:00
Cedric BAIL a453783e68 * eet: reduce memory used by Eet dictionary.
SVN revision: 55016
2010-11-26 14:40:53 +00:00
Cedric BAIL db4e12ca36 * eet: add EET_DATA_DESCRIPTOR_ADD_VAR_ARRAY_STRING.
SVN revision: 54989
2010-11-25 15:59:46 +00:00
Cedric BAIL 94ca4ee782 * eet: use eina configuration information correctly.
Patch from the OpenBSD team :
              Fabien Romano <fabien@openbsd.org>
              Jonathan Armani <armani@opensbd.org>


SVN revision: 54762
2010-11-21 11:07:50 +00:00
Carsten Haitzler 1f08779356 fix possible leak.
SVN revision: 54755
2010-11-21 05:18:19 +00:00
Cedric BAIL c89cf15ed7 * eet: correctly handle length of ciphered/compressed data.
SVN revision: 54683
2010-11-18 10:30:53 +00:00
Cedric BAIL 6c06003eb1 * eet: fix make check with tarball.
Reported by Thomas Sachau (Tommy[D]) <tommy@gentoo.org>


SVN revision: 54563
2010-11-15 13:11:40 +00:00
Cedric BAIL a763db242f * eet: Fix bug when using compression and ciphering.
Reported by discomfitor.


SVN revision: 54540
2010-11-13 23:04:31 +00:00
Cedric BAIL bd39bc4175 * eet: correctly reset content of variable.
SVN revision: 54493
2010-11-12 12:19:41 +00:00
Cedric BAIL 298fd33a1a * eet: don't open file two small to be valid.
SVN revision: 54491
2010-11-12 10:31:07 +00:00
Iván Briano e844adeda7 Fix docs a bit, I hope.
SVN revision: 54322
2010-11-08 12:00:45 +00:00
Carsten Haitzler 9c15e9abf7 bug exposed by cedric's leak and then my fix... :)
SVN revision: 53795
2010-10-23 04:36:32 +00:00
Gustavo Sverzut Barbieri 3236d249fc logs don't need trailing newline.
SVN revision: 53177
2010-10-07 23:53:16 +00:00
Gustavo Sverzut Barbieri 9d9b87b411 log domains in lower case.
SVN revision: 53176
2010-10-07 23:51:20 +00:00
Cedric BAIL c105d1bcf4 * eet: fix doc about eddc_size.
SVN revision: 52574
2010-09-22 09:50:26 +00:00
Vincent Torri 4d50fdc728 fix doc. There are still 2 warnings about eddc_size not
commented.

SVN revision: 52568
2010-09-22 08:00:36 +00:00
Carsten Haitzler d709b1315a warning-- -> if u dont compile with tls/openssl
SVN revision: 52437
2010-09-19 01:30:30 +00:00
Carsten Haitzler 0e392663ed warning--
SVN revision: 52436
2010-09-19 01:25:30 +00:00
Lucas De Marchi 07dfb49db2 Fix common misspellings
The following misspellings were fixed:

adress->address
alreayd->already
arbitary->arbitrary
cant->can't
convertion->conversion
impliment->implement
independant->independent
successfull->successful
tranformed->transformed
usefull->useful



SVN revision: 51963
2010-09-08 03:26:19 +00:00
Cedric BAIL f7e049050b * eet: fix typo, thanks batden.
SVN revision: 51921
2010-09-06 10:54:52 +00:00
Cedric BAIL c119195b94 * eet: fix use of garbage data.
SVN revision: 51920
2010-09-06 10:54:03 +00:00
Cedric BAIL dd168d1058 * eet: fix eet dictionnary ever growing dictionnary.
SVN revision: 51860
2010-09-03 13:25:22 +00:00
Cedric BAIL d0e18a3b2a * eet: fix build of data that doesn't match data descriptor.
SVN revision: 51677
2010-08-27 13:45:53 +00:00
Lucas De Marchi d8002ff386 Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Carsten Haitzler 22b5ace2ab more check cleans (bogus actually too - but you guys like to shut up
warnings don't you?)



SVN revision: 51544
2010-08-22 22:21:41 +00:00
Carsten Haitzler a6b6b95e62 make src also do what dest did - calloc.
SVN revision: 51543
2010-08-22 22:15:19 +00:00
Carsten Haitzler b5442a7d86 calloc dst mgr to be sure.
SVN revision: 51542
2010-08-22 22:10:29 +00:00
Vincent Torri 838b550407 get the verbosity with the env variable CK_VERBOSITY. By default, nothing is changed.
SVN revision: 51536
2010-08-22 17:59:03 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
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
2010-08-21 13:52:25 +00:00
Carsten Haitzler 824052d5ed formatting - as agreed. return on line before func and each param on a
line.



SVN revision: 51457
2010-08-20 02:22:51 +00:00
Carsten Haitzler f6b902d4be eet - clean out old data from doc dir, set up for 1.4.0 release,
bring install in line with eina and move content to readme. readied
for 1.4.0 alpha release.



SVN revision: 51155
2010-08-16 05:42:01 +00:00
Sebastian Dransfeld 91df89c40c Fix typo
SVN revision: 51103
2010-08-13 22:48:59 +00:00
Cedric BAIL ccc497b492 * eet: fix version and trigger the right alloc path.
SVN revision: 51093
2010-08-13 17:12:08 +00:00
Cedric BAIL d0f668a6ba * eet: fix bad allocation case triggered by edje new file format.
Bad news, I also discovered in the same time that we introduced an
	API/ABI breakage in 1.3.0. This patch does prevent it from coming
	again, sadly, it imply an ABI break that I didn't find a proper
	way to work around. So recompile eet and all the program that use
	it after that commit.


SVN revision: 51080
2010-08-13 15:21:52 +00:00
Cedric BAIL 348a4ef2fe * eet: fix leak in eet.
SVN revision: 51043
2010-08-12 14:37:36 +00:00
Cedric BAIL 4ce36d937e * eet: fix dead lock when using alias in eet file.
SVN revision: 50935
2010-08-09 17:21:10 +00:00
Cedric BAIL 6df15533ee * eet: typo.
SVN revision: 50865
2010-08-06 15:40:16 +00:00
Cedric BAIL 78e3e21c04 * eet: add an helper to setup hash with string content.
SVN revision: 50863
2010-08-06 15:24:21 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL 1edd7e4ffa * eet: fix bug on 32bits computer.
SVN revision: 50743
2010-08-02 14:30:46 +00:00
Sebastian Dransfeld 1c05469785 fix stupid align of *
SVN revision: 50721
2010-07-31 18:57:35 +00:00
Sebastian Dransfeld 5d1a9f4e0d remove space after *
SVN revision: 50719
2010-07-31 18:54:54 +00:00
Carsten Haitzler f7019f134d formatting. <- uncrustify
SVN revision: 50698
2010-07-31 01:54:48 +00:00
Carsten Haitzler c127ff73e7 fix formatting
SVN revision: 50576
2010-07-28 03:03:10 +00:00
Carsten Haitzler 9965849a0e formatting!!!!!
SVN revision: 50575
2010-07-28 02:49:01 +00:00
Mike Blumenkrantz 9dec9fa6b5 according to the docs you're supposed to set this or else you will be destroyed by lack of mutexes...
SVN revision: 50570
2010-07-28 02:10:44 +00:00
Carsten Haitzler 926db95c54 testing uncrustify on eet. this shall be standard efl formatting from
now on. you may run indent on code and convert to your own formatting
if you want.. but all code MUST be "uncrustified" before being
cxommitted to svn or before generating patches. time to get the
formatting monster under control.



SVN revision: 50563
2010-07-28 01:45:57 +00:00
Boris Faure 2ac69e62f0 eet: typo. Patch by Vincent Torri
SVN revision: 50445
2010-07-23 07:32:34 +00:00
Cedric BAIL 3f4ca260af * eet: reduce likeliness of race condition by checking file size too.
SVN revision: 50382
2010-07-20 16:13:51 +00:00
Vincent Torri 8351950dee Add native Windows thread support instead of using pthread
(less overhead). On other OS, pthread is still used by default.
Pass --enable-win32-threads to activate thread support on
Windows.


SVN revision: 50262
2010-07-15 06:34:32 +00:00
Lucas De Marchi 2a84379ba9 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Carsten Haitzler 6a6d4d991c more correct version of the dso fix
SVN revision: 50185
2010-07-11 23:57:08 +00:00
Carsten Haitzler e9d4afc9d7 moved eet.h to its own dir - pkgconfig handles all the right stuff.
SVN revision: 50117
2010-07-08 03:05:00 +00:00
Cedric BAIL 6df28268ca * eet: add support for eet_alias.
SVN revision: 49939
2010-06-29 16:20:23 +00:00
Vincent Torri 11f53993b0 put __UNUSED__ after parameter, not before
SVN revision: 49935
2010-06-29 10:47:06 +00:00
Vincent Torri 383343f251 On Windows 64, long is of size 32 bits and not 64 bits. Also
LONG_BIT is not defined on Windows.


SVN revision: 49934
2010-06-29 05:29:50 +00:00
Carsten Haitzler 41e3461449 Release eet 1.3.2
SVN revision: 49888
2010-06-27 13:29:19 +00:00
Vincent Torri a608450673 make eet unit tests compile on Windows
SVN revision: 49887
2010-06-27 12:10:46 +00:00
Carsten Haitzler 7d039b1101 extra ; - remove
SVN revision: 49269
2010-05-29 06:19:40 +00:00
Carsten Haitzler 3b47f08dcb ++d
SVN revision: 49099
2010-05-21 14:14:41 +00:00
Carsten Haitzler 56265a930f eet now has an eet_version you can runtime check:
eet_version->major
eet_version->minor
eet_version->micro
eet_version->revision

also an ifdef.

nb - revision is 0 if its a rrelease, > 0 if built from svn.



SVN revision: 49098
2010-05-21 14:07:25 +00:00
Carsten Haitzler bf22e27af6 apparently fbsd is unaware of expr substr...
SVN revision: 48277
2010-04-24 14:33:10 +00:00
Iván Briano bb157d6145 Delete the right file, not the newly added to the cache.
SVN revision: 48262
2010-04-23 23:01:29 +00:00
Cedric BAIL 2042862423 * eet: refactor some code.
SVN revision: 48218
2010-04-22 14:43:51 +00:00
Cedric BAIL eccf7d14a7 * eet: fix documentation.
SVN revision: 48217
2010-04-22 14:40:31 +00:00
Cedric BAIL c22277e070 * eet: remove EET_G_INHERIT.
SVN revision: 48216
2010-04-22 09:56:22 +00:00
Cedric BAIL b0618cbc01 * eet: use const only when needed.
SVN revision: 48204
2010-04-21 16:10:55 +00:00
Cedric BAIL a5aaf1723b * eet: Add EET_G_VARIANT and EET_G_UNION.
This are the basis for a new edje file format.
	Next to come EET_G_INHERIT.


SVN revision: 48201
2010-04-21 14:00:24 +00:00
Cedric BAIL d0ec0f0b96 * eet: improve tests suite coverage of signature print code.
SVN revision: 48056
2010-04-16 15:27:50 +00:00
Cedric BAIL b7dcdf619a * eet: handle fixed point in data stream.
SVN revision: 48055
2010-04-16 14:44:29 +00:00
Cedric BAIL 2cc28483e6 * eet: Improve coverage by tests suite and don't leak file in /tmp.
SVN revision: 48054
2010-04-16 14:43:07 +00:00
Cedric BAIL 4b55e9f4eb * eet: let eet create the temporary test file.
SVN revision: 47880
2010-04-09 17:22:45 +00:00
Cedric BAIL b02d6ed0ce * eet: Add eet_sync, reduce between file delete and file creation,
reduce number of fd open.

	This should not break anything, but report any issue regarding eet file
	creation, thread and file corruption on disk.


SVN revision: 47872
2010-04-09 13:45:25 +00:00
Cedric BAIL 97b8f7a58d * eet: remove dead code.
SVN revision: 47871
2010-04-09 12:38:49 +00:00
Cedric BAIL 28759c1a67 * eet: fix file corruption reported by Tiago Falcao <tiago@profusion.mobi>
Note: Do never call eet_flush2 if you don't actually fclose the file just after.



SVN revision: 47832
2010-04-08 14:04:22 +00:00
Cedric BAIL 7c14ed7617 * eet: we don't need to duplicate hash key when we could just point
to the Eet_File dictionnary entries.



SVN revision: 47806
2010-04-07 14:00:15 +00:00
Vincent Torri 84bf1cda79 must include winsock2.h before time.h and jpeglib.h (for vc++...)
SVN revision: 47721
2010-04-03 06:11:19 +00:00
Vincent Torri a8cc200870 * update Visual Studio project files
* declare alloca in eet_connection.c
 * remove the definition of __UNUSED__ (already done in config.h)
 * reorganize a bit the inclusion of header files so that
   the code is a bit more consistent


SVN revision: 47719
2010-04-03 05:29:44 +00:00