[GRASS-dev] Re: [GRASS-SVN] r34603 - grass/branches/develbranch_6/vector/v.delaunay2

Hi, sorry I am blindly run grass_indent.sh. I don't feel these changes
to be reasonable. Reverting changes. Not sure how to fix
grass_indent.sh.

Martin

2008/11/28 <svn_grass@osgeo.org>:

Author: martinl
Date: 2008-11-28 17:17:43 -0500 (Fri, 28 Nov 2008)
New Revision: 34603

Modified:
  grass/branches/develbranch_6/vector/v.delaunay2/
  grass/branches/develbranch_6/vector/v.delaunay2/geometry.c
  grass/branches/develbranch_6/vector/v.delaunay2/in_out.c
  grass/branches/develbranch_6/vector/v.delaunay2/main.c
  grass/branches/develbranch_6/vector/v.delaunay2/memory.c
Log:
v.delaunay2: grass_indent.sh
            svn:ignore prop
Modified: grass/branches/develbranch_6/vector/v.delaunay2/geometry.c

--- grass/branches/develbranch_6/vector/v.delaunay2/geometry.c 2008-11-28 22:12:43 UTC (rev 34602)
+++ grass/branches/develbranch_6/vector/v.delaunay2/geometry.c 2008-11-28 22:17:43 UTC (rev 34603)
@@ -21,9 +21,13 @@
{

    unsigned int n;
+
    unsigned int split;
+
    struct edge *l_ccw_l, *r_cw_l, *l_ccw_r, *r_cw_r, *l_tangent;
+
    struct edge *a, *b, *c;
+
    double c_p;

    n = r - l + 1;
@@ -98,7 +102,9 @@
                                  struct vertex **org_r_lower)

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Martin Landa wrote:

Hi, sorry I am blindly run grass_indent.sh. I don't feel these changes
to be reasonable. Reverting changes. Not sure how to fix
grass_indent.sh.

If I run grass_indent.sh on that file (geometry.c, r34604), it doesn't
change it in any way.

Do you have a file named .indent.pro in either your home directory or
your working directory? Or is $INDENT_PROFILE set? If such a file
exists, it will add options to indent.

I've modified grass_indent.sh to add the -npro switch, to disable
reading of profile files (r34606 7.0, r34607 6.4).

Of course, the reason might be different, e.g. a different version of
indent.

--
Glynn Clements <glynn@gclements.plus.com>

Hi,

2008/11/29 Glynn Clements <glynn@gclements.plus.com>:

If I run grass_indent.sh on that file (geometry.c, r34604), it doesn't
change it in any way.

still the file is changed...

Index: geometry.c

--- geometry.c (revision 34619)
+++ geometry.c (working copy)
@@ -21,9 +21,13 @@
{

     unsigned int n;
+
     unsigned int split;
+
     struct edge *l_ccw_l, *r_cw_l, *l_ccw_r, *r_cw_r, *l_tangent;
+
     struct edge *a, *b, *c;
+
     double c_p;

     n = r - l + 1;
@@ -98,7 +102,9 @@
                                   struct vertex **org_r_lower)

Do you have a file named .indent.pro in either your home directory or
your working directory? Or is $INDENT_PROFILE set? If such a file
exists, it will add options to indent.

no .indent.pro or $INDENT_PROFILE set.

I've modified grass_indent.sh to add the -npro switch, to disable
reading of profile files (r34606 7.0, r34607 6.4).

Of course, the reason might be different, e.g. a different version of
indent.

GNU indent 2.2.10

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *