<div dir="ltr"><div>Hi C devs,</div><div><br></div><div>is following considered wrong in GRASS code?</div><div><br></div>typedef struct Point {<br>   int x;<br>   int y;<br>} Point;<br><br>/* alternatively */<br>typedef struct {<br>

   int x;<br>   int y;<br>} Point;<br><br><br>I just saw r58957 and r49886 but till now I thought that typedefs (at the same time as struct definition) are allowed or even preferred since they are shorter. From C++ point of view `struct Point` is obsolete syntax which does not help anybody, both compiler and programmer knows what is Point.<div>

<br></div><div>There is nothing about this is SUBMITTING or referred GNU Coding Standards (at least I don't see anything).</div><div><br></div><div>Vaclav</div><div><br></div><div><br><a href="http://trac.osgeo.org/grass/changeset/49886">http://trac.osgeo.org/grass/changeset/49886</a><br>

<a href="http://trac.osgeo.org/grass/changeset/58957">http://trac.osgeo.org/grass/changeset/58957</a></div></div>