Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Vaudano Luca
Just out of curiosity, why is glib not advised?

Regards
Luca

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [ephoto] TRUE marco not defined, should be EINA_TRUE

2010-02-28 Thread Andrian Nord
Subject. Also, it's depending on deprecated ecore-txt/data.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Rui Miguel Silva Seabra
Em 28-02-2010 14:37, Vaudano Luca escreveu:
> Just out of curiosity, why is glib not advised?

You're taking it the wrong way. The advice was to use the functionality
that is in EFL instead of picking up the same functionality from
external libraries.

Rui

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Gustavo Sverzut Barbieri
On Sun, Feb 28, 2010 at 11:44 AM, Rui Miguel Silva Seabra  wrote:
> Em 28-02-2010 14:37, Vaudano Luca escreveu:
>> Just out of curiosity, why is glib not advised?
>
> You're taking it the wrong way. The advice was to use the functionality
> that is in EFL instead of picking up the same functionality from
> external libraries.

Actually some things are not even EFL, but simple POSIX calls like
strdup() instead of g_strdup(), asprintf() instead of
g_strdup_printf()

This not being against fair glib usage, but those are abuses that
don't need to exist and Rui kindly fixed those.

BR,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problems building python-evas on Ubuntu Karmic 64bit

2010-02-28 Thread Olof Sjobergh
Hi,

I'm trying to build python-evas on Ubuntu Karmic 64bit, but I can't
get it to work.

This is with Cython version 0.11.2 and Python 2.6 and EFL svn revision 46491.

Does anyone have an idea of how to solve it? The error message is
included below.

Best regards,

Olof Sjöbergh



Error converting Pyrex file to C:

...
#0xA (alpha)
#0xB (beta)
#0xC (release candidate)
#0xF (final)

char[] PY_VERSION
   ^


/usr/lib/pymodules/python2.6/Cython/Includes/python_version.pxd:31:8:
Buffer types only allowed as function local variables

Error converting Pyrex file to C:

...
#0xB (beta)
#0xC (release candidate)
#0xF (final)

char[] PY_VERSION
char[] PY_PATCHLEVEL_REVISION
   ^


/usr/lib/pymodules/python2.6/Cython/Includes/python_version.pxd:32:8:
Buffer types only allowed as function local variables

Error converting Pyrex file to C:

...

cdef long _smart_object_class_new(char *name) except 0:
cdef Evas_Smart_Class *cls_def
cdef Evas_Smart *cls

cls_def = python.PyMem_Malloc(sizeof(Evas_Smart_Class))
 ^


/home/olof/source/e17_src/python-efl/python-evas/evas/evas.c_evas_object_smart.pxi:233:14:
Casting temporary Python object to non-numeric non-Python type
evas/evas.c_evas.c:1:2: error: #error Do not use this file, it is the
result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Albin Tonnerre
On Sun, 28 Feb 2010 12:07 -0300, Gustavo Sverzut Barbieri wrote :
> On Sun, Feb 28, 2010 at 11:44 AM, Rui Miguel Silva Seabra  
> wrote:
> > Em 28-02-2010 14:37, Vaudano Luca escreveu:
> >> Just out of curiosity, why is glib not advised?
> >
> > You're taking it the wrong way. The advice was to use the functionality
> > that is in EFL instead of picking up the same functionality from
> > external libraries.
> 
> Actually some things are not even EFL, but simple POSIX calls like
> strdup() instead of g_strdup(), asprintf() instead of
> g_strdup_printf()
> 
> This not being against fair glib usage, but those are abuses that
> don't need to exist and Rui kindly fixed those.

I wouldn't consider using g_strdup_printf vs. asprintf an abuse. asprint is a
GNU-specific extension, and is not guaranteed to be available. g_strdup_printf,
OTOH, is part on the glib API, which guarantees that it's available on a fair -
and defined - set of plartforms.
That being said, please note that I'm not arguing against the change.

Regards,
-- 
Albin Tonnerre


signature.asc
Description: Digital signature
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Mikhail Gusarov

Twas brillig at 23:43:49 27.02.2010 UTC+00 when r...@1407.org did gyre and 
gimble:

 >>> Log:
 >>>  Replace g_strdup_printf with asprintf
 >> 
 >> why do you replace all those g_* functions ?

 RMSS> Reduce usage of glib to use more EFLs (as advised).

Makes code harder to read. FWIW.

-- 
  http://fossarchy.blogspot.com/


pgpIwUWB1NXOI.pgp
Description: PGP signature
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Mikhail Gusarov

Twas brillig at 16:21:09 28.02.2010 UTC+01 when albin.tonne...@gmail.com did 
gyre and gimble:

 AT> I wouldn't consider using g_strdup_printf vs. asprintf an
 AT> abuse. asprint is a GNU-specific extension, and is not guaranteed
 AT> to be available. g_strdup_printf, OTOH, is part on the glib API,
 AT> which guarantees that it's available on a fair - and defined - set
 AT> of plartforms.

Not even saying that asprintf interface is abomination.

-- 
  http://fossarchy.blogspot.com/


pgpW7s2sKBU5T.pgp
Description: PGP signature
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problems building python-evas on Ubuntu Karmic 64bit

2010-02-28 Thread Sachiel
On Sun, Feb 28, 2010 at 12:09 PM, Olof Sjobergh  wrote:
> Hi,
>
> I'm trying to build python-evas on Ubuntu Karmic 64bit, but I can't
> get it to work.
>
> This is with Cython version 0.11.2 and Python 2.6 and EFL svn revision 46491.
>
> Does anyone have an idea of how to solve it? The error message is
> included below.
>

Get Cython 0.12. Previous versions are not supported.

> Best regards,
>
> Olof Sjöbergh
>
>
>
> Error converting Pyrex file to C:
> 
> ...
>    #    0xA (alpha)
>    #    0xB (beta)
>    #    0xC (release candidate)
>    #    0xF (final)
>
>    char[] PY_VERSION
>       ^
> 
>
> /usr/lib/pymodules/python2.6/Cython/Includes/python_version.pxd:31:8:
> Buffer types only allowed as function local variables
>
> Error converting Pyrex file to C:
> 
> ...
>    #    0xB (beta)
>    #    0xC (release candidate)
>    #    0xF (final)
>
>    char[] PY_VERSION
>    char[] PY_PATCHLEVEL_REVISION
>       ^
> 
>
> /usr/lib/pymodules/python2.6/Cython/Includes/python_version.pxd:32:8:
> Buffer types only allowed as function local variables
>
> Error converting Pyrex file to C:
> 
> ...
>
> cdef long _smart_object_class_new(char *name) except 0:
>    cdef Evas_Smart_Class *cls_def
>    cdef Evas_Smart *cls
>
>    cls_def = python.PyMem_Malloc(sizeof(Evas_Smart_Class))
>             ^
> 
>
> /home/olof/source/e17_src/python-efl/python-evas/evas/evas.c_evas_object_smart.pxi:233:14:
> Casting temporary Python object to non-numeric non-Python type
> evas/evas.c_evas.c:1:2: error: #error Do not use this file, it is the
> result of a failed Cython compilation.
> error: command 'gcc' failed with exit status 1
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problems building python-evas on Ubuntu Karmic 64bit

2010-02-28 Thread Olof Sjobergh
On Sun, Feb 28, 2010 at 4:35 PM, Iván Briano (Sachiel)
 wrote:
> Get Cython 0.12. Previous versions are not supported.

Thanks, that worked perfectly.

Best regards,

Olof Sjöbergh

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: rui trunk/elmdentica/src

2010-02-28 Thread Gustavo Sverzut Barbieri
On Sun, Feb 28, 2010 at 12:20 PM, Mikhail Gusarov
 wrote:
>
> Twas brillig at 16:21:09 28.02.2010 UTC+01 when albin.tonne...@gmail.com did 
> gyre and gimble:
>
>  AT> I wouldn't consider using g_strdup_printf vs. asprintf an
>  AT> abuse. asprint is a GNU-specific extension, and is not guaranteed
>  AT> to be available. g_strdup_printf, OTOH, is part on the glib API,
>  AT> which guarantees that it's available on a fair - and defined - set
>  AT> of plartforms.

Well, it is used in lots of efl code, that runs on other platforms...
so that's part of the porting effort, so far not required or done in
Evil or some other tool.


> Not even saying that asprintf interface is abomination.

Why? It's the regular printf() interface. Do you mean because you get
the size of the string as result and you must get the string from a
parameter output? It's C, we have to live with that. The size return
IS useful, it will avoid subsequent strlen(), for example if you want
to eina_stringshare_add() you could use the faster
eina_stringshare_add_length() variant, same for other functions such
as eina_str_*_full variants.

BR,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri trunk/edje/src/bin

2010-02-28 Thread Vincent Torri


On Sun, 28 Feb 2010, Enlightenment SVN wrote:

> Log:
>  remove warnings from edje binaries.
>
> Author:   barbieri
> Date: 2010-02-28 08:14:50 -0800 (Sun, 28 Feb 2010)
> New Revision: 46647
>
> Modified:
>  trunk/edje/src/bin/edje_cc_parse.c trunk/edje/src/bin/edje_decc.c
>
> Modified: trunk/edje/src/bin/edje_cc_parse.c
> ===
> --- trunk/edje/src/bin/edje_cc_parse.c2010-02-28 15:57:17 UTC (rev 
> 46646)
> +++ trunk/edje/src/bin/edje_cc_parse.c2010-02-28 16:14:50 UTC (rev 
> 46647)
> @@ -806,6 +806,7 @@
> {
>char *str;
>char *end;
> +   long val;
>
>str = eina_list_nth(params, n);
>if (!str)
> @@ -816,7 +817,7 @@
>  }
>if (str[0] == 0) return 0;
>end = str;
> -   strtol(str, &end, 0);
> +   val = strtol(str, &end, 0);

what's the interest of fixing such warning if you don't check the returned 
value ? same for fwrite below

Vincent

>if ((end != str) && (end[0] == 0)) return 1;
>return 0;
> }
>
> Modified: trunk/edje/src/bin/edje_decc.c
> ===
> --- trunk/edje/src/bin/edje_decc.c2010-02-28 15:57:17 UTC (rev 46646)
> +++ trunk/edje/src/bin/edje_decc.c2010-02-28 16:14:50 UTC (rev 46647)
> @@ -14,6 +14,7 @@
> #include 
> #include 
> #include 
> +#include 
>
>
> #include 
> @@ -305,7 +306,8 @@
>  exit (-1);
>   }
> f = fopen(out, "wb");
> -   fwrite(font, fontsize, 1, f);
> +   if (fwrite(font, fontsize, 1, f) != 1)
> + ERR("Could not write font: %s", strerror(errno));
> fclose(f);
> free(font);
>  }
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri trunk/edje/src/bin

2010-02-28 Thread Vincent Torri


On Sun, 28 Feb 2010, Vincent Torri wrote:

>
>
> On Sun, 28 Feb 2010, Enlightenment SVN wrote:
>
>> Log:
>>  remove warnings from edje binaries.
>>
>> Author:   barbieri
>> Date: 2010-02-28 08:14:50 -0800 (Sun, 28 Feb 2010)
>> New Revision: 46647
>>
>> Modified:
>>  trunk/edje/src/bin/edje_cc_parse.c trunk/edje/src/bin/edje_decc.c
>>
>> Modified: trunk/edje/src/bin/edje_cc_parse.c
>> ===
>> --- trunk/edje/src/bin/edje_cc_parse.c   2010-02-28 15:57:17 UTC (rev 
>> 46646)
>> +++ trunk/edje/src/bin/edje_cc_parse.c   2010-02-28 16:14:50 UTC (rev 
>> 46647)
>> @@ -806,6 +806,7 @@
>> {
>>char *str;
>>char *end;
>> +   long val;
>>
>>str = eina_list_nth(params, n);
>>if (!str)
>> @@ -816,7 +817,7 @@
>>  }
>>if (str[0] == 0) return 0;
>>end = str;
>> -   strtol(str, &end, 0);
>> +   val = strtol(str, &end, 0);
>
> what's the interest of fixing such warning if you don't check the returned
> value ? same for fwrite below

i misread the code for fwrite. You really check its returned value. for 
strtol, at least check that there is no overflow

> Vincent
>
>>if ((end != str) && (end[0] == 0)) return 1;
>>return 0;
>> }
>>
>> Modified: trunk/edje/src/bin/edje_decc.c
>> ===
>> --- trunk/edje/src/bin/edje_decc.c   2010-02-28 15:57:17 UTC (rev 46646)
>> +++ trunk/edje/src/bin/edje_decc.c   2010-02-28 16:14:50 UTC (rev 46647)
>> @@ -14,6 +14,7 @@
>> #include 
>> #include 
>> #include 
>> +#include 
>>
>>
>> #include 
>> @@ -305,7 +306,8 @@
>> exit (-1);
>>  }
>>f = fopen(out, "wb");
>> -  fwrite(font, fontsize, 1, f);
>> +  if (fwrite(font, fontsize, 1, f) != 1)
>> +ERR("Could not write font: %s", strerror(errno));
>>fclose(f);
>>free(font);
>> }
>>
>>
>> --
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> enlightenment-svn mailing list
>> enlightenment-...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>>
>>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] evas: Allow to reduce line spacing in Textblock

2010-02-28 Thread Mikhail Gusarov

Here's the proposed patch for Evas which removes extra checks and makes
it possible to reduce line spacing in Textblock (previously it was only
possible to make it bigger than default, and default gave me 34px with
14px-tall DejaVu Sans Condensed and cyrillic letters).

---
 trunk/evas/src/lib/canvas/evas_object_textblock.c |   11 ---
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/trunk/evas/src/lib/canvas/evas_object_textblock.c 
b/trunk/evas/src/lib/canvas/evas_object_textblock.c
index 30be18d..b2d8903 100644
--- a/trunk/evas/src/lib/canvas/evas_object_textblock.c
+++ b/trunk/evas/src/lib/canvas/evas_object_textblock.c
@@ -1306,19 +1306,16 @@ _layout_format_ascent_descent_adjust(Ctxt *c, 
Evas_Object_Textblock_Format *fmt)
descent = c->ENFN->font_max_descent_get(c->ENDT, fmt->font.font);
 if (fmt->linesize > 0)
   {
- if ((ascent + descent) < fmt->linesize)
-   {
-  ascent = ((fmt->linesize * ascent) / (ascent + descent));
-  descent = fmt->linesize - ascent;
-   }
+ascent = ((fmt->linesize * ascent) / (ascent + descent));
+descent = fmt->linesize - ascent;
   }
 else if (fmt->linerelsize > 0.0)
   {
  descent = ((ascent + descent) * fmt->linerelsize) - (ascent * 
fmt->linerelsize);
  ascent = ascent * fmt->linerelsize;
   }
-   if (c->maxascent < ascent) c->maxascent = ascent;
-   if (c->maxdescent < descent) c->maxdescent = descent;
+   c->maxascent = ascent;
+   c->maxdescent = descent;
  }
 }
 
-- 
1.6.3.3



-- 
  http://fossarchy.blogspot.com/


pgpcVwev8W8x8.pgp
Description: PGP signature
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri IN trunk/eina: doc src/include src/lib

2010-02-28 Thread Vincent Torri



On Sun, 28 Feb 2010, Enlightenment SVN wrote:


Log:
 doc improvements.

Author:   barbieri
Date: 2010-02-28 13:29:30 -0800 (Sun, 28 Feb 2010)
New Revision: 46670

Modified:
 trunk/eina/doc/Doxyfile trunk/eina/src/include/Eina.h 
trunk/eina/src/include/eina_module.h trunk/eina/src/include/eina_rbtree.h 
trunk/eina/src/include/eina_rectangle.h trunk/eina/src/lib/eina_log.c 
trunk/eina/src/lib/eina_magic.c

Modified: trunk/eina/doc/Doxyfile
===
--- trunk/eina/doc/Doxyfile 2010-02-28 19:55:36 UTC (rev 46669)
+++ trunk/eina/doc/Doxyfile 2010-02-28 21:29:30 UTC (rev 46670)
@@ -177,7 +177,7 @@
# The TAB_SIZE tag can be used to set the number of spaces in a tab.
# Doxygen uses this value to replace tabs by spaces in code fragments.

-TAB_SIZE   = 2
+TAB_SIZE   = 8

# This tag can be used to specify a number of aliases that acts
# as commands in the documentation. An alias has the form "name=value".
@@ -773,7 +773,7 @@
# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
# will append .docset to the name.

-DOCSET_BUNDLE_ID   = org.doxygen.Project
+DOCSET_BUNDLE_ID   = org.enlightenment.Eina

# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the

Modified: trunk/eina/src/include/Eina.h
===
--- trunk/eina/src/include/Eina.h   2010-02-28 19:55:36 UTC (rev 46669)
+++ trunk/eina/src/include/Eina.h   2010-02-28 21:29:30 UTC (rev 46670)
@@ -1,4 +1,4 @@
-/* EINA - EFL data type library
+b/* EINA - EFL data type library


strange 'b', here :-)

Vincent


 * Copyright (C) 2008-2010 Enlightenment Developers:
 *   Albin "Lutin" Tonnerre 
 *   Alexandre "diaxen" Becoulet 
@@ -37,58 +37,26 @@
/**
 * @mainpage Eina
 *
- * @author Albin "Lutin" Tonnerre 
- * @author Alexandre "diaxen" Becoulet 
- * @author Andre Dieb 
- * @author Arnaud de Turckheim "quarium" 
- * @author Carsten Haitzler 
- * @author Cedric Bail 
- * @author Corey "atmos" Donohoe 
- * @author Fabiano Fidêncio 
- * @author Gustavo Chaves 
- * @author Gustavo Sverzut Barbieri 
- * @author Jorge Luis "turran" Zapata 
- * @author Peter "pfritz" Wehrfritz 
- * @author Raphael Kubo da Costa 
- * @author Tilman Sauerbeck 
+ * @author Albin "Lutin" Tonnerre 
+ * @author Alexandre "diaxen" Becoulet 
+ * @author Andre Dieb 
+ * @author Arnaud de Turckheim "quarium" 
+ * @author Carsten Haitzler 
+ * @author Cedric Bail 
+ * @author Corey "atmos" Donohoe 
+ * @author Fabiano Fidêncio 
+ * @author Gustavo Chaves 
+ * @author Gustavo Sverzut Barbieri 
+ * @author Jorge Luis "turran" Zapata 
+ * @author Peter "pfritz" Wehrfritz 
+ * @author Raphael Kubo da Costa 
+ * @author Tilman Sauerbeck 
 * @author Vincent "caro" Torri  
 * @date 2008-2010
 *
- * @section eina_toc_sec Table of contents
- *
- * 
- *@ref eina_intro_sec
- *@ref eina_data_types_sec
- *   
- *  @ref eina_container_subsec
- * 
- *@ref eina_array_subsubsec
- *@ref eina_hash_subsubsec
- *@ref eina_inlist_subsubsec
- *@ref eina_rbtree_subsubsec
- *@ref eina_trash_subsubsec
- *@ref eina_list_subsubsec
- * 
- *  @ref eina_stringshare_subsec
- *   
- *@ref eina_access_contents_sec
- *   
- *  @ref eina_iterators_subsec
- *  @ref eina_accessors_subsec
- *   
- *@ref eina_tools_sec
- *   
- *  @ref eina_convert_subsec
- *  @ref eina_counter_subsec
- *  @ref eina_error_subsec
- *   
- *@ref thread_safety_sec
- *@ref debugging_sec
- * 
- *
 * @section eina_intro_sec Introduction
 *
- * The Eina library is a library that implemente an API for data types
+ * The Eina library is a library that implements an API for data types
 * in an efficient way. It also provides some useful tools like
 * openin shared libraries, errors management, type conversion,
 * time accounting and memory pool.
@@ -96,85 +64,47 @@
 * This library is cross-platform and can be compiled and used on
 * Linux and Windows (XP and CE).
 *
- * The data types that are available are
- * @li array
- * @li hash table
- * @li inlined list
- * @li inlined red black tree
- * @li list
- * @li shared string
+ * The data types that are available are (see @ref Eina_Data_Types_Group):
+ * @li @ref Eina_Array_Group standard array of @c void* data.
+ * @li @ref Eina_Hash_Group standard hash of @c void* data.
+ * @li @ref Eina_Inline_List_Group list with nodes inlined into user type.
+ * @li @ref Eina_List_Group standard list of @c void* data.
+ * @li @ref Eina_Matrixsparse_Group sparse matrix of @c void* data.
+ * @li @ref Eina_Rbtree_Group red-black tree with nodes inlined into user type.
+ * @li @ref Eina_Stringshare_Group saves memory by sharing read-only string 
references.
+ * @li @ref Eina_Tiler_Group split, merge and navigates into 2D til

Re: [E-devel] E SVN: barbieri IN trunk/eina: doc src/include src/lib

2010-02-28 Thread Gustavo Sverzut Barbieri
thanks!

On Sun, Feb 28, 2010 at 6:36 PM, Vincent Torri  wrote:
>
>
> On Sun, 28 Feb 2010, Enlightenment SVN wrote:
>
>> Log:
>>  doc improvements.
>>
>> Author:       barbieri
>> Date:         2010-02-28 13:29:30 -0800 (Sun, 28 Feb 2010)
>> New Revision: 46670
>>
>> Modified:
>>  trunk/eina/doc/Doxyfile trunk/eina/src/include/Eina.h
>> trunk/eina/src/include/eina_module.h trunk/eina/src/include/eina_rbtree.h
>> trunk/eina/src/include/eina_rectangle.h trunk/eina/src/lib/eina_log.c
>> trunk/eina/src/lib/eina_magic.c
>>
>> Modified: trunk/eina/doc/Doxyfile
>> ===
>> --- trunk/eina/doc/Doxyfile     2010-02-28 19:55:36 UTC (rev 46669)
>> +++ trunk/eina/doc/Doxyfile     2010-02-28 21:29:30 UTC (rev 46670)
>> @@ -177,7 +177,7 @@
>> # The TAB_SIZE tag can be used to set the number of spaces in a tab.
>> # Doxygen uses this value to replace tabs by spaces in code fragments.
>>
>> -TAB_SIZE               = 2
>> +TAB_SIZE               = 8
>>
>> # This tag can be used to specify a number of aliases that acts
>> # as commands in the documentation. An alias has the form "name=value".
>> @@ -773,7 +773,7 @@
>> # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
>> # will append .docset to the name.
>>
>> -DOCSET_BUNDLE_ID       = org.doxygen.Project
>> +DOCSET_BUNDLE_ID       = org.enlightenment.Eina
>>
>> # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
>> # documentation will contain sections that can be hidden and shown after
>> the
>>
>> Modified: trunk/eina/src/include/Eina.h
>> ===
>> --- trunk/eina/src/include/Eina.h       2010-02-28 19:55:36 UTC (rev
>> 46669)
>> +++ trunk/eina/src/include/Eina.h       2010-02-28 21:29:30 UTC (rev
>> 46670)
>> @@ -1,4 +1,4 @@
>> -/* EINA - EFL data type library
>> +b/* EINA - EFL data type library
>
> strange 'b', here :-)
>
> Vincent
>
>>  * Copyright (C) 2008-2010 Enlightenment Developers:
>>  *           Albin "Lutin" Tonnerre 
>>  *           Alexandre "diaxen" Becoulet 
>> @@ -37,58 +37,26 @@
>> /**
>>  * @mainpage Eina
>>  *
>> - * @author Albin "Lutin" Tonnerre 
>> - * @author Alexandre "diaxen" Becoulet 
>> - * @author Andre Dieb 
>> - * @author Arnaud de Turckheim "quarium" 
>> - * @author Carsten Haitzler 
>> - * @author Cedric Bail 
>> - * @author Corey "atmos" Donohoe 
>> - * @author Fabiano Fidêncio 
>> - * @author Gustavo Chaves 
>> - * @author Gustavo Sverzut Barbieri 
>> - * @author Jorge Luis "turran" Zapata 
>> - * @author Peter "pfritz" Wehrfritz 
>> - * @author Raphael Kubo da Costa 
>> - * @author Tilman Sauerbeck 
>> + * @author Albin "Lutin" Tonnerre 
>> + * @author Alexandre "diaxen" Becoulet 
>> + * @author Andre Dieb 
>> + * @author Arnaud de Turckheim "quarium" 
>> + * @author Carsten Haitzler 
>> + * @author Cedric Bail 
>> + * @author Corey "atmos" Donohoe 
>> + * @author Fabiano Fidêncio 
>> + * @author Gustavo Chaves 
>> + * @author Gustavo Sverzut Barbieri 
>> + * @author Jorge Luis "turran" Zapata 
>> + * @author Peter "pfritz" Wehrfritz 
>> + * @author Raphael Kubo da Costa 
>> + * @author Tilman Sauerbeck 
>>  * @author Vincent "caro" Torri  
>>  * @date 2008-2010
>>  *
>> - * @section eina_toc_sec Table of contents
>> - *
>> - * 
>> - *    @ref eina_intro_sec
>> - *    @ref eina_data_types_sec
>> - *   
>> - *      @ref eina_container_subsec
>> - *     
>> - *        @ref eina_array_subsubsec
>> - *        @ref eina_hash_subsubsec
>> - *        @ref eina_inlist_subsubsec
>> - *        @ref eina_rbtree_subsubsec
>> - *        @ref eina_trash_subsubsec
>> - *        @ref eina_list_subsubsec
>> - *     
>> - *      @ref eina_stringshare_subsec
>> - *   
>> - *    @ref eina_access_contents_sec
>> - *   
>> - *      @ref eina_iterators_subsec
>> - *      @ref eina_accessors_subsec
>> - *   
>> - *    @ref eina_tools_sec
>> - *   
>> - *      @ref eina_convert_subsec
>> - *      @ref eina_counter_subsec
>> - *      @ref eina_error_subsec
>> - *   
>> - *    @ref thread_safety_sec
>> - *    @ref debugging_sec
>> - * 
>> - *
>>  * @section eina_intro_sec Introduction
>>  *
>> - * The Eina library is a library that implemente an API for data types
>> + * The Eina library is a library that implements an API for data types
>>  * in an efficient way. It also provides some useful tools like
>>  * openin shared libraries, errors management, type conversion,
>>  * time accounting and memory pool.
>> @@ -96,85 +64,47 @@
>>  * This library is cross-platform and can be compiled and used on
>>  * Linux and Windows (XP and CE).
>>  *
>> - * The data types that are available are
>> - * @li array
>> - * @li hash table
>> - * @li inlined list
>> - * @li inlined red black tree
>> - * @li list
>> - * @li shared string
>> + * The data types that are available are (see @ref
>> Eina_Data_Types_Group):
>> + * @li @ref Eina_Array_Group standard array of @c void* data.
>> + * @li @ref Eina_Hash_Group st

[E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Rui Miguel Silva Seabra
Hello,

The attached patch would seem to add http basic auth to ecore_con_url

I'm still testing it, but I'd like to know the opinion of others on its
addition. I'm still a bit too shy to commit real code in core EFL
libraries :)

Best,
Rui
Index: AUTHORS
===
--- AUTHORS (revision 46658)
+++ AUTHORS (working copy)
@@ -28,3 +28,4 @@
 Lars Munch 
 Andre Dieb 
 Mathieu Taillefumier 
+Rui Miguel Silva Seabra 
Index: src/lib/ecore_con/ecore_con_url.c
===
--- src/lib/ecore_con/ecore_con_url.c   (revision 46658)
+++ src/lib/ecore_con/ecore_con_url.c   (working copy)
@@ -660,6 +660,43 @@
 }
 
 /**
+ * Sets url_con to use basic auth with given username and password.
+ *
+ * @param url_con Connection object to perform a request on, previously created
+ *   with ecore_con_url_new() or ecore_con_url_custom_new().
+ * @param username Username to use in authentication
+ * @param password Password to use in authentication
+ *
+ * @return 1 on success, 0 on error.
+ *
+ * @ingroup Ecore_Con_Url_Group
+ */
+EAPI int
+ecore_con_url_auth_basic_set(Ecore_Con_Url *url_con, char *username, char 
*password)
+{
+#ifdef HAVE_CURL
+   char *userpwd=NULL;
+   int res=0;
+
+   if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))
+ {
+   ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, 
"ecore_con_url_auth_basic_set");
+   return 0;
+ }
+   if(username != NULL && password != NULL)
+ {
+   res = asprintf(&userpwd, "%s:%s", username, password);
+   if(res != -1)
+ {
+curl_easy_setopt(url_con->curl_easy, CURLOPT_USERPWD, userpwd);
+return 1;
+ }
+ }
+   return 0;
+#endif
+}
+
+/**
  * Sends a request.
  *
  * @param url_con Connection object to perform a request on, previously created
Index: src/lib/ecore_con/Ecore_Con.h
===
--- src/lib/ecore_con/Ecore_Con.h   (revision 46658)
+++ src/lib/ecore_con/Ecore_Con.h   (working copy)
@@ -222,6 +222,7 @@
EAPI int   ecore_con_url_url_set(Ecore_Con_Url *url_con, const 
char *url);
EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd);
EAPI int  ecore_con_url_received_bytes_get(Ecore_Con_Url 
*url_con);
+   EAPI int  ecore_con_url_auth_basic_set(Ecore_Con_Url *url_con, 
char *username, char *password);
EAPI int   ecore_con_url_send(Ecore_Con_Url *url_con, const 
void *data, size_t length, const char *content_type);
EAPI void  ecore_con_url_time(Ecore_Con_Url *url_con, 
Ecore_Con_Url_Time condition, time_t tm);
 
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Vincent Torri


On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:

> Hello,
>
> The attached patch would seem to add http basic auth to ecore_con_url
>
> I'm still testing it, but I'd like to know the opinion of others on its
> addition. I'm still a bit too shy to commit real code in core EFL
> libraries :)

  * don't use asprintf : not portable
  * follow the coding style

I let others comment on the code as i don't know much about that stuff

Vincent

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Rui Miguel Silva Seabra
Em 28-02-2010 22:10, Vincent Torri escreveu:
> 
> 
> On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:
> 
>> Hello,
>>
>> The attached patch would seem to add http basic auth to ecore_con_url
>>
>> I'm still testing it, but I'd like to know the opinion of others on its
>> addition. I'm still a bit too shy to commit real code in core EFL
>> libraries :)
> 
>  * don't use asprintf : not portable

Will look into other way to do that part.

>  * follow the coding style

I thought I did, what did I do wrong?

Rui

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Vincent Torri


On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:

> Em 28-02-2010 22:10, Vincent Torri escreveu:
>>
>>
>> On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:
>>
>>> Hello,
>>>
>>> The attached patch would seem to add http basic auth to ecore_con_url
>>>
>>> I'm still testing it, but I'd like to know the opinion of others on its
>>> addition. I'm still a bit too shy to commit real code in core EFL
>>> libraries :)
>>
>>  * don't use asprintf : not portable
>
> Will look into other way to do that part.

buffer + snprintf

>
>>  * follow the coding style
>
> I thought I did, what did I do wrong?

if ()
   {
  int i;// 3 spaces after to column of the opening bracket
   }

and use tabs for multiples of 8 spaces. Unfortunately, that horror is 
propagated through all the EFL because of the editor that raster uses. The 
guys who wrote this editor should be tortured.

Vincent

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Rui Miguel Silva Seabra
Em 28-02-2010 22:18, Vincent Torri escreveu:
> 
> 
> On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:
> 
>> Em 28-02-2010 22:10, Vincent Torri escreveu:
>>>
>>>
>>> On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:
>>>
 Hello,

 The attached patch would seem to add http basic auth to ecore_con_url

 I'm still testing it, but I'd like to know the opinion of others on its
 addition. I'm still a bit too shy to commit real code in core EFL
 libraries :)
>>>
>>>  * don't use asprintf : not portable
>>
>> Will look into other way to do that part.
> 
> buffer + snprintf

I am allocating memory as I don't like to waste space on buffers :)

>>>  * follow the coding style
>>
>> I thought I did, what did I do wrong?
> 
> if ()
>   {
>  int i;// 3 spaces after to column of the opening bracket
>   }
> 
> and use tabs for multiples of 8 spaces. Unfortunately, that horror is
> propagated through all the EFL because of the editor that raster uses.
> The guys who wrote this editor should be tortured.

Oh no, don't drag me into text editor wars ;)

Rui

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Joerg Sonnenberger
On Sun, Feb 28, 2010 at 10:02:25PM +, Rui Miguel Silva Seabra wrote:
> The attached patch would seem to add http basic auth to ecore_con_url

Does it work with usernames or passwords containing ":"?

Joerg

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Gustavo Sverzut Barbieri
On Sun, Feb 28, 2010 at 7:10 PM, Vincent Torri  wrote:
> On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:
>
>> Hello,
>>
>> The attached patch would seem to add http basic auth to ecore_con_url
>>
>> I'm still testing it, but I'd like to know the opinion of others on its
>> addition. I'm still a bit too shy to commit real code in core EFL
>> libraries :)
>
>  * don't use asprintf : not portable

as I said in the other mail, I'm pretty sure it is available in other
platforms since I've used it in lots of code I added to SVN.

If not available in windows, it's better to just implement it in evil,
but should be easy to do in 2 pass printf implementation.

asprintf() is a very useful function.

BR,

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Rui Miguel Silva Seabra
Em 28-02-2010 22:25, Joerg Sonnenberger escreveu:
> On Sun, Feb 28, 2010 at 10:02:25PM +, Rui Miguel Silva Seabra wrote:
>> The attached patch would seem to add http basic auth to ecore_con_url
> 
> Does it work with usernames or passwords containing ":"?
> 
> Joerg

Likely curl won't like it very much, as it sets it to be
"username:password\0"

I don't think there will be any *trouble* if this isn't controlled, just
a (temporary) limitation.

But working on that is a desireable future change, right now I want to
migrate from using curl directly into using ecore_con_url and I need
basic basic auth support.

Rui

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Vincent Torri



On Sun, 28 Feb 2010, Gustavo Sverzut Barbieri wrote:


On Sun, Feb 28, 2010 at 7:10 PM, Vincent Torri  wrote:

On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:


Hello,

The attached patch would seem to add http basic auth to ecore_con_url

I'm still testing it, but I'd like to know the opinion of others on its
addition. I'm still a bit too shy to commit real code in core EFL
libraries :)


 * don't use asprintf : not portable


as I said in the other mail, I'm pretty sure it is available in other
platforms since I've used it in lots of code I added to SVN.

If not available in windows, it's better to just implement it in evil,
but should be easy to do in 2 pass printf implementation.

asprintf() is a very useful function.


and a buffer can also be used, like most of similar code in the efl

Vincent--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Vincent Torri



On Sun, 28 Feb 2010, Vincent Torri wrote:




On Sun, 28 Feb 2010, Gustavo Sverzut Barbieri wrote:


On Sun, Feb 28, 2010 at 7:10 PM, Vincent Torri  wrote:

On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:


Hello,

The attached patch would seem to add http basic auth to ecore_con_url

I'm still testing it, but I'd like to know the opinion of others on its
addition. I'm still a bit too shy to commit real code in core EFL
libraries :)


 * don't use asprintf : not portable


as I said in the other mail, I'm pretty sure it is available in other
platforms since I've used it in lots of code I added to SVN.

If not available in windows, it's better to just implement it in evil,
but should be easy to do in 2 pass printf implementation.


and, btw, no, it can't be achieve this way : vsnprintf does not return the 
number of char if the buffer is not sufficiently arge (contrary to the 
libc implentation on linux). It returns -1 in that case


Vincent


asprintf() is a very useful function.


and a buffer can also be used, like most of similar code in the efl

Vincent--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] evas: Allow to reduce line spacing in Textblock

2010-02-28 Thread Mikhail Gusarov

Twas brillig at 03:23:09 01.03.2010 UTC+06 when dotted...@dottedmag.net did 
gyre and gimble:

 MG> Here's the proposed patch

Please ignore it, it is broken. I am working on better patch which will
fix Textblock layouting (e.g. no artificial space before first line) and
allow for reduced line spacing as well.

-- 
  http://fossarchy.blogspot.com/


pgp40vOsVl0U8.pgp
Description: PGP signature
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Gustavo Sverzut Barbieri
On Sun, Feb 28, 2010 at 8:13 PM, Vincent Torri  wrote:
>
>
> On Sun, 28 Feb 2010, Vincent Torri wrote:
>
>>
>>
>> On Sun, 28 Feb 2010, Gustavo Sverzut Barbieri wrote:
>>
>>> On Sun, Feb 28, 2010 at 7:10 PM, Vincent Torri 
>>> wrote:

 On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:

> Hello,
>
> The attached patch would seem to add http basic auth to ecore_con_url
>
> I'm still testing it, but I'd like to know the opinion of others on its
> addition. I'm still a bit too shy to commit real code in core EFL
> libraries :)

  * don't use asprintf : not portable
>>>
>>> as I said in the other mail, I'm pretty sure it is available in other
>>> platforms since I've used it in lots of code I added to SVN.
>>>
>>> If not available in windows, it's better to just implement it in evil,
>>> but should be easy to do in 2 pass printf implementation.
>
> and, btw, no, it can't be achieve this way : vsnprintf does not return the
> number of char if the buffer is not sufficiently arge (contrary to the libc
> implentation on linux). It returns -1 in that case
>
> Vincent
>
>>> asprintf() is a very useful function.
>>
>> and a buffer can also be used, like most of similar code in the efl

Ouch, this is quite bad. Maybe evil should provide it's own snprintf()
that is compatible with POSIX and implement the asprintf() variant. I
know I often check the return of snprintf() when I know I can get
bogus value and the result might be truncated (so of no real use) and
I do as the recommended man page says (compare to >= sizeof(buf))


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Vincent Torri



On Sun, 28 Feb 2010, Gustavo Sverzut Barbieri wrote:


On Sun, Feb 28, 2010 at 8:13 PM, Vincent Torri  wrote:



On Sun, 28 Feb 2010, Vincent Torri wrote:




On Sun, 28 Feb 2010, Gustavo Sverzut Barbieri wrote:


On Sun, Feb 28, 2010 at 7:10 PM, Vincent Torri 
wrote:


On Sun, 28 Feb 2010, Rui Miguel Silva Seabra wrote:


Hello,

The attached patch would seem to add http basic auth to ecore_con_url

I'm still testing it, but I'd like to know the opinion of others on its
addition. I'm still a bit too shy to commit real code in core EFL
libraries :)


 * don't use asprintf : not portable


as I said in the other mail, I'm pretty sure it is available in other
platforms since I've used it in lots of code I added to SVN.

If not available in windows, it's better to just implement it in evil,
but should be easy to do in 2 pass printf implementation.


and, btw, no, it can't be achieve this way : vsnprintf does not return the
number of char if the buffer is not sufficiently arge (contrary to the libc
implentation on linux). It returns -1 in that case

Vincent


asprintf() is a very useful function.


and a buffer can also be used, like most of similar code in the efl


Ouch, this is quite bad. Maybe evil should provide it's own snprintf()
that is compatible with POSIX and implement the asprintf() variant. I
know I often check the return of snprintf() when I know I can get
bogus value and the result might be truncated (so of no real use) and
I do as the recommended man page says (compare to >= sizeof(buf))


even worse : snprintf on Windows does not guarantee NULL termination of 
the string...


Vincent--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Add http basic auth to ecore_con_url

2010-02-28 Thread Joerg Sonnenberger
On Mon, Mar 01, 2010 at 12:13:03AM +0100, Vincent Torri wrote:
> and, btw, no, it can't be achieve this way : vsnprintf does not
> return the number of char if the buffer is not sufficiently arge
> (contrary to the libc implentation on linux). It returns -1 in that
> case

If you mean the function on Windows: don't use it. Not sure about
Windows, but on many other systems you can always implement snprintf in
the crude way by using /dev/null with printf...

Joerg

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/ecore/src/lib/ecore_x/xlib

2010-02-28 Thread Peter Johnson
Ping?

Would it be more convenient to send the patch and test programs directly to
the list?  (I know people usually do this, but since it's a number of files, I
figured it might be cumbersome.)

pete

On Thu, Feb 25, 2010 at 09:51:01PM -0500, Peter Johnson wrote:
> Here's a tarball containing a prospective patch and a few commented test
> programs:
> 
> http://tam.hiddenrock.com/eina-log-default.tar.gz
> 
> I haven't yet updated the documentation because I'm not entirely convinced
> it's correct, but I'm not sure why, so I'd like a few second pairs of eyes on
> it.  Thanks.
> 
> pete
> 
> On Thu, Feb 25, 2010 at 05:18:10PM -0300, Gustavo Sverzut Barbieri wrote:
> > On Thu, Feb 25, 2010 at 5:00 PM, Peter Johnson  wrote:
> > > Cool, thanks.
> > >
> > > My reading of those pages indicates that, were I to follow the 
> > > recommendations
> > > contained therein, I would always use the EINA_LOG_DOM_*() macros and 
> > > never
> > > the EINA_LOG_*() macros, because they use EINA_LOG_DOMAIN_GLOBAL, and as a
> > > good developer I should have my own domain(s) for my project.
> > >
> > > I think it would be helpful to allow developers to specify a logging 
> > > domain
> > > for an entire source file, which the EINA_LOG_*() macros would use.  This
> > > would cut down on typing and errors in consistency, and increase the SNR 
> > > of my
> > > code.
> > >
> > > My suggestion: the EINA_LOG_*() macros always log to 
> > > EINA_LOG_DOMAIN_DEFAULT,
> > > which would initially be set to EINA_LOG_DOMAIN_GLOBAL, and may be 
> > > overridden
> > > by a developer in a particular file.  The complication is that it would 
> > > have
> > > to be reset for the next file.  On the other hand, it could encourage 
> > > better
> > > developer habits regarding header files and whatnot.
> > 
> > Hum... this do make sense. I even like the short 3 letter macros, but
> > doing this could be very helpful and backwards compatible!
> > 
> > Could you send a patch doing that, with documentation updated?
> > 
> > BR,
> > 
> > 
> > -- 
> > Gustavo Sverzut Barbieri
> > http://profusion.mobi embedded systems
> > --
> > MSN: barbi...@gmail.com
> > Skype: gsbarbieri
> > Mobile: +55 (19) 9225-2202
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] Use casts when using cpp

2010-02-28 Thread Raoul Hecky
Le samedi 27 février 2010 06:56:08, Vincent Torri a écrit :
> On Sat, 27 Feb 2010, Peter Wehrfritz wrote:
> > Gustavo Sverzut Barbieri wrote:
> >> On Fri, Feb 26, 2010 at 6:33 PM, Peter Wehrfritz  
wrote:
> >>> Gustavo Sverzut Barbieri wrote:
>  On Fri, Feb 26, 2010 at 10:44 AM, Lucas De Marchi
> 
>   wrote:
> > C++ needs casts in order to assign a void* to another pointer type.
> > As typeof operator is a gcc extension, we define EINA_TYPEOF(x) as
> > "typeof" on gcc with c++ source and as nothing otherwise.
> 
>  Lucas, as I told you, I'd rather use the following patch, but it would
>  not help other C++ compilers, so not a real solution.
> >>>
> >>> What about this:
> >>>
> >>> template 
> >>> inline T *cast_to(T *, void *p)
> >>> {
> >>>   return (T *)p;
> >>> }
> >>>
> >>> ...
> >>> data = cast_to(data, l);
> >>>
> >>> I haven't used c++ since a while, but I think this should be portable.
> >>
> >> They have the fancy templates dynamic_cast(ptr) and
> >> static_cast(ptr)
> >
> > Yes, I know. But I wasn't sure which one to chose, so I took a normal C
> > cast as the OP did.
> 
> static_cast is better that dynamic_cast in that case (imho)

Yes, static_cast is the most common cast operator and replaces the C-style 
casts. dynamic_cast will not work as it checks dynamically for the hierarchy 
class of both pointers. You should only use that with with polymorphic 
classes.

> Vincent
> 
> ---
> --- Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 

-- 

Raoul Hecky
Calaos



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel