pkgsrc/cad/pcb/patches/patch-ae
dmcmahill 53e4a5ba09 - use getcwd() instead of getwd().
- remove all compiler warnings on alpha

- add ${PKG_SYSCONFDIR}/pcb/local.inc where admins can list site specific
  libraries to be included instead of modifying one of the regularly
  installed/deinstalled files.  This way a local config is preserved when
  the pkg is upgraded.  Also a local config can be applied without modifying
  one of the files which is checksummed during the install.
2002-05-31 19:56:19 +00:00

49 lines
1.7 KiB
Text

$NetBSD: patch-ae,v 1.1 2002/05/31 19:56:20 dmcmahill Exp $
--- src/move.c.orig Wed May 13 06:29:49 1998
+++ src/move.c
@@ -359,7 +359,7 @@
DrawArc(Layer, Arc, 0);
Draw();
}
- if (((int) Dest == -1) || Dest == Layer)
+ if (((long int) Dest == -1) || Dest == Layer)
return(Arc);
AddObjectToMoveToLayerUndoList(ARC_TYPE, Layer, Arc, Arc);
if (Layer->On)
@@ -391,7 +391,7 @@
DrawLine(Layer, Line, 0);
Draw();
}
- if (((int) Dest == -1) || Dest == Layer)
+ if (((long int) Dest == -1) || Dest == Layer)
return(Line);
AddObjectToMoveToLayerUndoList(LINE_TYPE, Layer, Line, Line);
@@ -473,7 +473,7 @@
TextTypePtr new;
/* Dest == -1 means move to silkscreen layer */
- if (((int) Dest == -1) || (Dest == Layer))
+ if (((long int) Dest == -1) || (Dest == Layer))
AddObjectToFlagUndoList(TEXT_TYPE, Layer, Text, Text);
else
AddObjectToMoveToLayerUndoList(TEXT_TYPE, Layer, Text, Text);
@@ -481,7 +481,7 @@
(TEST_FLAG(ONSILKFLAG, Text) && (PCB->InvisibleObjectsOn ||
(TEST_FLAG(ONSOLDERFLAG, Text) !=0) == SWAP_IDENT)))
EraseText(Text);
- if ((int) Dest == -1)
+ if ((long int) Dest == -1)
{
SET_FLAG(ONSILKFLAG, Text);
if (PCB->ElementOn || (TEST_FLAG(ONSOLDERFLAG, Text) !=0) == SWAP_IDENT)
@@ -536,7 +536,7 @@
PolygonTypePtr new;
int LayerThermFlag, DestThermFlag;
- if (((int) Dest == -1) || (Layer == Dest))
+ if (((long int) Dest == -1) || (Layer == Dest))
return(Polygon);
AddObjectToMoveToLayerUndoList(POLYGON_TYPE, Layer, Polygon, Polygon);
if (Layer->On)