On Tuesday, 14 April 2009, at 20:01:10 (-0300),
Gustavo Sverzut Barbieri wrote:
> lol... the *warning* is the good thing about not initializing
> variables: you know when you miss it. As I said, if it was useful to
> init things to 0, then gcc would do it already, don't you think?
If it weren't u
On Tue, Apr 14, 2009 at 8:19 PM, Michael Jennings wrote:
> On Tuesday, 14 April 2009, at 18:19:57 (-0300),
> Gustavo Sverzut Barbieri wrote:
>
>> yes, it is better, because you can know when you're not using them
>> and if you are using them without proper initialization, so you would
>> not hide
On Tuesday, 14 April 2009, at 18:19:57 (-0300),
Gustavo Sverzut Barbieri wrote:
> yes, it is better, because you can know when you're not using them
> and if you are using them without proper initialization, so you would
> not hide a bug, possibly a segfault. See:
>
>char *a;
>...
>
On Tue, Apr 14, 2009 at 7:50 PM, Michael Jennings wrote:
> On Tuesday, 14 April 2009, at 16:53:44 (-0300),
> Gustavo Sverzut Barbieri wrote:
>
>> But initializing pointers to NULL or variables to 0 is not good, if
>> it was be sure that compilers would do that automatically. It's
>> easier to hide
On Tuesday, 14 April 2009, at 18:09:50 (-0300),
Gustavo Sverzut Barbieri wrote:
> Ok, my last email, do what you wish as this is not critical, but
> it's not *safer*. This is a false claim. it's bad programing habit
> and will make debug with valgrind harder. Just like zeroing pointers
> and memor
Michael Jennings wrote:
> On Tuesday, 14 April 2009, at 16:53:44 (-0300),
> Gustavo Sverzut Barbieri wrote:
>
>> But initializing pointers to NULL or variables to 0 is not good, if
>> it was be sure that compilers would do that automatically. It's
>> easier to hide bugs with that, you'll make it h
On Tuesday, 14 April 2009, at 16:53:44 (-0300),
Gustavo Sverzut Barbieri wrote:
> But initializing pointers to NULL or variables to 0 is not good, if
> it was be sure that compilers would do that automatically. It's
> easier to hide bugs with that, you'll make it harder to valgrind to
> help you :
On Tue, Apr 14, 2009 at 6:16 PM, Christopher Michael
wrote:
> Gustavo Sverzut Barbieri wrote:
>>
>> On Tue, Apr 14, 2009 at 6:05 PM, Christopher Michael
>> wrote:
>>>
>>> Gustavo Sverzut Barbieri wrote:
On Tue, Apr 14, 2009 at 5:16 PM, Christopher Michael
wrote:
>
> Gustav
Gustavo Sverzut Barbieri wrote:
> On Tue, Apr 14, 2009 at 6:05 PM, Christopher Michael
> wrote:
>> Gustavo Sverzut Barbieri wrote:
>>> On Tue, Apr 14, 2009 at 5:16 PM, Christopher Michael
>>> wrote:
Gustavo Sverzut Barbieri wrote:
> On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz
> wr
On Tue, Apr 14, 2009 at 6:05 PM, Christopher Michael
wrote:
> Gustavo Sverzut Barbieri wrote:
>>
>> On Tue, Apr 14, 2009 at 5:16 PM, Christopher Michael
>> wrote:
>>>
>>> Gustavo Sverzut Barbieri wrote:
On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz
wrote:
>
> Am Fri, 10 Ap
Gustavo Sverzut Barbieri wrote:
> On Tue, Apr 14, 2009 at 5:16 PM, Christopher Michael
> wrote:
>> Gustavo Sverzut Barbieri wrote:
>>> On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz wrote:
Am Fri, 10 Apr 2009 22:54:45 -0300 schrieb Gustavo Sverzut Barbieri:
> On Fri, Apr 10, 2009 at
On Tue, Apr 14, 2009 at 5:16 PM, Christopher Michael
wrote:
> Gustavo Sverzut Barbieri wrote:
>>
>> On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz wrote:
>>>
>>> Am Fri, 10 Apr 2009 22:54:45 -0300 schrieb Gustavo Sverzut Barbieri:
>>>
On Fri, Apr 10, 2009 at 7:34 PM, Enlightenment SVN
w
Gustavo Sverzut Barbieri wrote:
> On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz wrote:
>> Am Fri, 10 Apr 2009 22:54:45 -0300 schrieb Gustavo Sverzut Barbieri:
>>
>>> On Fri, Apr 10, 2009 at 7:34 PM, Enlightenment SVN
>>> wrote:
>>>
- now used Eina_List for storage (I hope I used it correct.
On Tue, Apr 14, 2009 at 4:09 PM, Andreas Volz wrote:
> Am Fri, 10 Apr 2009 22:54:45 -0300 schrieb Gustavo Sverzut Barbieri:
>
>> On Fri, Apr 10, 2009 at 7:34 PM, Enlightenment SVN
>> wrote:
>>
>> > - now used Eina_List for storage (I hope I used it correct...)
>>
>> > + Eina_List *l = NULL;
>>
Am Fri, 10 Apr 2009 22:54:45 -0300 schrieb Gustavo Sverzut Barbieri:
> On Fri, Apr 10, 2009 at 7:34 PM, Enlightenment SVN
> wrote:
>
> > - now used Eina_List for storage (I hope I used it correct...)
>
> > + Eina_List *l = NULL;
> > + Evas_Object *o = NULL;
> > +
> > + // delete the list
On Fri, Apr 10, 2009 at 7:34 PM, Enlightenment SVN
wrote:
> - now used Eina_List for storage (I hope I used it correct...)
> + Eina_List *l = NULL;
> + Evas_Object *o = NULL;
> +
> + // delete the list
> + for (l = xscreensaver_list; l; l = eina_list_next(l))
> + {
> + xscreensav
16 matches
Mail list logo