Commit Graph

450 Commits

Author SHA1 Message Date
Carsten Haitzler 6ffa97b1f5 roll back eet change (revert patch) as this breaks bsd and seems to cause
other issues for other people too (not me though)...



SVN revision: 35797
2008-09-03 01:34:53 +00:00
Cedric BAIL 8c7b666b6e Little bit modified patch from Joerg Sonnenberger that remove the need for
memfile.

It pass all the image test of the test suite with some little modification.
E seems to run fine with it and my apps also. But if you experience error
with eet and compressed picture, please report them to me.



SVN revision: 35795
2008-09-02 16:12:05 +00:00
Cedric BAIL 89911e0559 Fix two source of memory leak.
SVN revision: 35616
2008-08-22 14:35:21 +00:00
Cedric BAIL c61e8a7081 Update ChangeLog.
SVN revision: 35607
2008-08-21 17:28:08 +00:00
Cedric BAIL e3d6b72073 Fix a typo that prevent some valid file to be loaded.
SVN revision: 35584
2008-08-20 15:35:15 +00:00
Carsten Haitzler 0e405b7cd3 actually barf help then exit -1
SVN revision: 35539
2008-08-18 12:22:41 +00:00
Carsten Haitzler 7aa5c530d4 fail when not passed good args
SVN revision: 35538
2008-08-18 12:21:55 +00:00
Carsten Haitzler 0d3a45be0f ok. i think most binary files are now fixed.
SVN revision: 35525
2008-08-18 00:02:26 +00:00
Cedric BAIL c35c6bafa3 Delay unlink and reopen as long as possible in read/write mode.
SVN revision: 35462
2008-08-13 16:40:53 +00:00
Sebastian Dransfeld dd429f0d8b formatting
SVN revision: 35425
2008-08-10 09:33:55 +00:00
Sebastian Dransfeld 80674bcaf5 formatting
SVN revision: 35424
2008-08-10 09:25:21 +00:00
Sebastian Dransfeld f2b6fd3cd3 ignore
SVN revision: 35337
2008-08-06 04:58:43 +00:00
Carsten Haitzler 459569ee08 wrong return error handling. 0 == error, 1 == ok.
SVN revision: 35280
2008-08-01 01:02:49 +00:00
Cedric BAIL d59f9b7d6c Fix a little bug in the test and do a real write test.
SVN revision: 35255
2008-07-30 14:10:36 +00:00
Carsten Haitzler 9c712115e4 unsigned long... better
SVN revision: 35227
2008-07-26 12:54:39 +00:00
doursse a1046bb11e Add Visual Studio solution and vc projects to compile Eet with Microsoft tools
For those who want to try it, please read README.txt first

Work from Dmitriy Mazovka. Thank you !


SVN revision: 35206
2008-07-24 18:26:08 +00:00
Cedric BAIL 9dddec7f09 Fix wrongly stored image when compressed size is bigger than uncompressed. Fix bug #523.
SVN revision: 35204
2008-07-24 13:25:18 +00:00
Cedric BAIL 01d456b207 Update changelog.
SVN revision: 35158
2008-07-18 11:41:15 +00:00
Cedric BAIL 667c57f9fe Improve speed by comparing pointer instead of calling strcmp (thanks to the
dictionnary's property).


SVN revision: 35157
2008-07-18 11:39:38 +00:00
Peter Wehrfritz f5bd66341f fix compile warnings
SVN revision: 35143
2008-07-17 20:28:59 +00:00
Cedric BAIL 912fe5584e Update ChangeLog.
SVN revision: 35142
2008-07-17 16:42:34 +00:00
Cedric BAIL 00388c7fbd Improve speed of eet_data freelist by using a hash table instead of just a pointer list.
SVN revision: 35141
2008-07-17 16:39:28 +00:00
Cedric BAIL 77bb260256 Improve decode speed by using precomputed hash.
SVN revision: 35140
2008-07-17 15:33:40 +00:00
Cedric BAIL f9f12aec91 Fix INLINED_STRING allocation, this was causing the bug with edje_decc.
SVN revision: 34980
2008-07-02 12:10:12 +00:00
Gustavo Sverzut Barbieri ed239be74a Check if file was really open before continue.
If we tried to create the new rw file, we must check if it was created
fine before continue, lots of errors are possible there, but mine was
creating the file inside an nonexistent directory.


SVN revision: 34928
2008-06-27 22:05:49 +00:00
Cedric BAIL d16456e061 Fix the bug with EET_T_UNKNOW/EET_G_UNKNOWN that did break the CVS.
Add a test to detect this bug and caught another one, not yet solved
with dump/undump of EET_T_UNKNOW/EET_G_UNKNOWN.


SVN revision: 34925
2008-06-27 15:26:53 +00:00
Cedric BAIL 86e4286496 This patch is a starting point for cleaning up eet_data.c.
It also add EET_G_VAR_ARRAY and EET_G_ARRAY thanks to
turran's (jorgeluis.zapata@gmail.com) last year patch.
Of course we have test code for it and eet_data.c code
is covered around 90.1%. We need to test with garbage
data for increasing it more.

WARNING: API of eet_data_descriptor_element_add is not
clean and we will need to break it, if we want a clean
API. So this is the plan for version 2.0.0.


SVN revision: 34919
2008-06-26 15:47:25 +00:00
Sebastian Dransfeld af829abf19 ignore++
SVN revision: 34864
2008-06-19 12:30:57 +00:00
Carsten Haitzler e2aa481463 sorry mate - we dont have the debian stuff in there because debian packagers
themselves have asked for us not to ship any debian stuff in the dist tarballs.


SVN revision: 34793
2008-06-10 10:10:19 +00:00
Horms 9707532fe0 Add automake1.7 | automaken, libtool, pkg-config as debian build dependancies
Currently debian/rules requires these dependancies to else
the following errors occur:

When automake is missing:

./autogen.sh
[...]
Running aclocal...
./autogen.sh: line 8: aclocal: command not found
make: *** [clean] Error 1

./autogen.sh
[...]
configure.in:20: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:23: error: possibly undefined macro: AC_PROG_LIBTOOL
make: *** [clean] Error 1

When pkg-config is missing:

./autogen.sh
[...]
configure: creating libtool
./configure: line 14491: PKG_PROG_PKG_CONFIG: command not found
./configure: line 14499: syntax error near unexpected token `EVIL,'
./configure: line 14499: `		PKG_CHECK_MODULES(EVIL, evil)'
make: *** [clean] Error 2


SVN revision: 34790
2008-06-10 08:30:54 +00:00
Horms 5036b5f801 Add m4/doxygen.m4 and debian/* to distribution
These files are needed by configure and debian packaging respectively


SVN revision: 34789
2008-06-10 07:59:37 +00:00
Horms 2c8e1d84f4 Have configure create debian/changelog
Not doing so seems to be an omission.


SVN revision: 34788
2008-06-10 07:58:01 +00:00
Gustavo Sverzut Barbieri 83b37319b9 Initialize ef->writes_pending.
Valgrind just noticed that "writes_pending" was not being initialized,
probably because some old code used calloc() (based on the comment
at the allocation step).


SVN revision: 34777
2008-06-09 03:19:25 +00:00
Carsten Haitzler f153d22daf leak--
SVN revision: 34776
2008-06-09 03:07:35 +00:00
Cedric BAIL 40d8302800 Update ChangeLog.
SVN revision: 34726
2008-06-02 16:02:41 +00:00
Cedric BAIL 2b37d10029 Add eet_data_image_read_to_surface and eet_data_image_decode_to_surface.
This functions provide a way to support tiles with eet. They also give the
possibility to directly decompress eet image inside an engine surface.


SVN revision: 34725
2008-06-02 16:01:18 +00:00
Carsten Haitzler 43821d36e4 * add efreet garbage data check
* remove printfs that clutter output
* add efreet file type check - only parse regular files
* chekc mmap returns correctly for MAP_FAILED results
* edje has some stubs for adding script-only objecvts - but nothing useful
right now


SVN revision: 34689
2008-05-29 02:00:04 +00:00
Cedric BAIL f89bed55e3 Disabling support of old eet file format was broken.
SVN revision: 34681
2008-05-27 13:50:40 +00:00
Cedric BAIL 575a80cdc8 Oops double commit.
SVN revision: 34621
2008-05-19 16:47:37 +00:00
Cedric BAIL 84435200a8 Update ChangeLog.
SVN revision: 34620
2008-05-19 16:28:30 +00:00
Cedric BAIL e3a9048600 Remove some unused variable.
SVN revision: 34619
2008-05-19 16:01:50 +00:00
Cedric BAIL 4b23e38e3e Remove use of sprintf by propagating the buffer size information.
SVN revision: 34618
2008-05-19 15:27:04 +00:00
Cedric BAIL 09e1b5d7da Remove all use of strcpy as we already know the length.
SVN revision: 34617
2008-05-19 15:25:46 +00:00
Cedric BAIL 6226ef6b93 Old eet file format are now marked as deprecated. The plan is to let the
support enable by default for some time, then make desactivate it and finaly
we will remove it completely at some point.


SVN revision: 34616
2008-05-19 15:23:41 +00:00
Carsten Haitzler 6982d7fb37 pass make distcheck and a snapshot asparagus release - been a while
SVN revision: 34600
2008-05-19 00:07:12 +00:00
doursse 3d7ca0e112 minor fix of the doc about tests and coverage
SVN revision: 34592
2008-05-16 15:32:32 +00:00
Cedric BAIL 0f5070cf40 Introducing unit test in EFL using cvs check library for the test
suite (http://check.sourceforge.net/) and lcov from cvs also for the
coverage accounting (http://ltp.sourceforge.net/coverage/lcov.php).
   This first set provide an overall coverage rate for src/lib 2111
of 2607 lines (81.0%) for eet. And it helped in finding and fixing
the bugs of the last three days.


SVN revision: 34591
2008-05-16 15:07:03 +00:00
Cedric BAIL d7cf02c1b5 Add some test around efn->offset and set it properly in all case.
SVN revision: 34590
2008-05-16 14:03:11 +00:00
Cedric BAIL ecda494197 Fix EET_FILE_MODE_READ_WRITE when file doesn't exist.
SVN revision: 34588
2008-05-16 10:00:54 +00:00
Cedric BAIL 0755b54e76 The purpose of descriptor3 was to introduce a way to malloc/free less string. So do it.
SVN revision: 34587
2008-05-16 09:59:16 +00:00