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

gEDA-cvs: pcb.git: branch: master updated (086aa491fae18f1ec72da047b772fa3510f72d0b)



The branch, master has been updated
       via  086aa491fae18f1ec72da047b772fa3510f72d0b (commit)
      from  4c90b8fe7bdd6f3ceb78e871a18c81dc8dd291e8 (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/draw.c              |    4 ++--
 src/hid/gerber/gerber.c |    4 ++--
 src/hid/ps/ps.c         |    8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)


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

commit 086aa491fae18f1ec72da047b772fa3510f72d0b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Use strcasecmp when looking for the "outline" or "route" layer
    
    A some cases previously used strcmp, leading to inconsistencies
    in our handling of these "special" layers.

:100644 100644 1d902b2... 3756955... M	src/draw.c
:100644 100644 e68026d... e33e6ef... M	src/hid/gerber/gerber.c
:100644 100644 d7e0371... 2d96e16... M	src/hid/ps/ps.c

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

commit 086aa491fae18f1ec72da047b772fa3510f72d0b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Use strcasecmp when looking for the "outline" or "route" layer
    
    A some cases previously used strcmp, leading to inconsistencies
    in our handling of these "special" layers.

diff --git a/src/draw.c b/src/draw.c
index 1d902b2..3756955 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -891,8 +891,8 @@ DrawLayerGroup (int group, const BoxType * screen)
     {
       layernum = layers[i];
       Layer = PCB->Data->Layer + layers[i];
-      if (strcmp (Layer->Name, "outline") == 0
-	  || strcmp (Layer->Name, "route") == 0)
+      if (strcasecmp (Layer->Name, "outline") == 0
+	  || strcasecmp (Layer->Name, "route") == 0)
 	rv = 0;
       if (layernum < max_layer && Layer->On)
 	{
diff --git a/src/hid/gerber/gerber.c b/src/hid/gerber/gerber.c
index e68026d..e33e6ef 100644
--- a/src/hid/gerber/gerber.c
+++ b/src/hid/gerber/gerber.c
@@ -467,8 +467,8 @@ gerber_set_layer (const char *name, int group, int empty)
     return 0;
 
   flash_drills = 0;
-  if (strcmp (name, "outline") == 0
-      || strcmp (name, "route") == 0)
+  if (strcasecmp (name, "outline") == 0
+      || strcasecmp (name, "route") == 0)
     flash_drills = 1;
 
   if (is_drill && n_pending_drills)
diff --git a/src/hid/ps/ps.c b/src/hid/ps/ps.c
index d7e0371..2d96e16 100644
--- a/src/hid/ps/ps.c
+++ b/src/hid/ps/ps.c
@@ -377,8 +377,8 @@ ps_hid_export_to_file (FILE * the_file, HID_Attr_Val * options)
       if (layer->LineN || layer->TextN || layer->ArcN || layer->PolygonN)
 	print_group[GetLayerGroupNumberByNumber (i)] = 1;
 
-      if (strcmp (layer->Name, "outline") == 0
-	  || strcmp (layer->Name, "route") == 0)
+      if (strcasecmp (layer->Name, "outline") == 0
+	  || strcasecmp (layer->Name, "route") == 0)
 	{
 	  printf("see outline layer\n");
 	  outline_layer = layer;
@@ -704,8 +704,8 @@ ps_set_layer (const char *name, int group, int empty)
       && outline_layer
       && outline_layer != PCB->Data->Layer+idx
       && SL_TYPE (idx) == 0 /* copper */
-      && strcmp (name, "outline")
-      && strcmp (name, "route"))
+      && strcasecmp (name, "outline")
+      && strcasecmp (name, "route"))
     {
       printf("attempting to draw outlines on %s\n", name);
       DrawLayer (outline_layer, &region);




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