[postgis-tickets] [PostGIS] #3538: Enforcing code style

PostGIS trac at osgeo.org
Thu Apr 28 10:38:33 PDT 2016


#3538: Enforcing code style
----------------------+----------------------------
  Reporter:  strk     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  Management 2.0
 Component:  postgis  |    Version:  2.2.x
Resolution:           |   Keywords:
----------------------+----------------------------

Comment (by pramsey):

 Except for the handling of enum, which gets worse
 {{{
 diff --git a/postgis/lwgeom_in_kml.c b/postgis/lwgeom_in_kml.c
 index cedeb3a..930aaa6 100644
 --- a/postgis/lwgeom_in_kml.c
 +++ b/postgis/lwgeom_in_kml.c
 @@ -209,15 +209,15 @@ static double parse_kml_double(char *d, bool
 space_before,
         int st;
         enum states
         {
 -           INIT        = 0,
 -           NEED_DIG    = 1,
 -           DIG         = 2,
 -           NEED_DIG_DEC        = 3,
 -           DIG_DEC     = 4,
 -           EXP         = 5,
 -           NEED_DIG_EXP        = 6,
 -           DIG_EXP     = 7,
 -           END                 = 8
 +               INIT            = 0,
 +               NEED_DIG        = 1,
 +               DIG             = 2,
 +               NEED_DIG_DEC    = 3,
 +               DIG_DEC         = 4,
 +               EXP             = 5,
 +               NEED_DIG_EXP    = 6,
 +               DIG_EXP         = 7,
 +               END             = 8
         };
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3538#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list