On 7/18/07, Martin Koller <[EMAIL PROTECTED]> wrote:
> On Wednesday 18 July 2007, Per Inge Mathisen wrote:
> > On 7/18/07, Martin Koller <[EMAIL PROTECTED]> wrote:
> > > is there any interest in allowing to compile wz with a C++ compiler
> >
> > If you look at the coding style document (in the wiki), you'll see we
> > require that patches remain C++ compatible.
>
> Interesting. I ask myself, what is the reasoning behind if you don't like to
> use C++ ?

We like to keep our options open and support MSVC, which is a really
C++ compiler with some token C support.

> > No, you should not cast the value returned from malloc in C...
>
> "you should not" in the meaning of "in C it is not needed" or "this is against
> our rules" ?
> It would not hurt to still use a cast.

Yes, it would. It is ugly, and if you change the type of the variable
then you may have to update a ton of malloc casts. Void was introduced
in C exactly for this reason.

  - Per

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to