[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (53cc7df40f934a769def0be79a2ac4fe1aa84e53)



The branch, master has been updated
       via  53cc7df40f934a769def0be79a2ac4fe1aa84e53 (commit)
      from  d82a597eacc4475ef12e2c995acda734bd1a2e59 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/polygon1.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)


=================
 Commit Messages
=================

commit 53cc7df40f934a769def0be79a2ac4fe1aa84e53
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Improve dump_poly() output
    
    Make it print each contour of a POLYAREA, and move the NEXT PLINE
    and NEXT POLY messages inside the loops interating over these
    structures.

:100644 100644 2ffd7cb... d9f6ce4... M	src/polygon1.c

=========
 Changes
=========

commit 53cc7df40f934a769def0be79a2ac4fe1aa84e53
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Improve dump_poly() output
    
    Make it print each contour of a POLYAREA, and move the NEXT PLINE
    and NEXT POLY messages inside the loops interating over these
    structures.

diff --git a/src/polygon1.c b/src/polygon1.c
index 2ffd7cb..d9f6ce4 100644
--- a/src/polygon1.c
+++ b/src/polygon1.c
@@ -142,20 +142,26 @@ pline_dump (VNODE * v)
 	       n->point[0], n->point[1], theState (v));
     }
   while ((v = v->next) != s);
-  fprintf (stderr, "NEXT PLINE\n");
 }
 
 static void
 poly_dump (POLYAREA * p)
 {
   POLYAREA *f = p;
+  PLINE *pl;
 
   do
     {
-      pline_dump (&p->contours->head);
+      pl = p->contours;
+      do
+        {
+          pline_dump (&pl->head);
+          fprintf (stderr, "NEXT PLINE\n");
+        }
+      while ((pl = pl->next) != NULL);
+      fprintf (stderr, "NEXT POLY\n");
     }
   while ((p = p->f) != f);
-  fprintf (stderr, "NEXT_POLY\n");
 }
 #endif
 




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs