summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-lef_defRead.c
blob: 3573fd1d99369441b4919e7687f1e978109137a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$NetBSD: patch-lef_defRead.c,v 1.1 2013/03/03 01:11:10 joerg Exp $

--- lef/defRead.c.orig	2013-03-02 22:27:45.000000000 +0000
+++ lef/defRead.c
@@ -568,12 +568,8 @@ enum def_orient {DEF_NORTH, DEF_SOUTH, D
 	DEF_FLIPPED_NORTH, DEF_FLIPPED_SOUTH, DEF_FLIPPED_EAST,
 	DEF_FLIPPED_WEST};
 
-int
-DefReadLocation(use, f, oscale, tptr)
-    CellUse *use;
-    FILE *f;
-    float oscale;
-    Transform *tptr;
+static void
+DefReadLocation(CellUse *use, FILE *f, float oscale, Transform *tptr)
 {
     Rect *r, tr;
     int keyword;
@@ -645,11 +641,11 @@ DefReadLocation(use, f, oscale, tptr)
     GeoTranslateTrans(&t2, (int)roundf(x / oscale), (int)roundf(y / oscale), tptr);
     if (use)
 	DBSetTrans(use, tptr);
-    return 0;
+    return;
 
 parse_error:
     LefError("Cannot parse location: must be ( X Y ) orient\n");
-    return -1;
+    return;
 }
 
 /*
$NetBSD: patch-lef_defRead.c,v 1.1 2013/03/03 01:11:10 joerg Exp $

--- lef/defRead.c.orig	2013-03-02 22:27:45.000000000 +0000
+++ lef/defRead.c
@@ -568,12 +568,8 @@ enum def_orient {DEF_NORTH, DEF_SOUTH, D
 	DEF_FLIPPED_NORTH, DEF_FLIPPED_SOUTH, DEF_FLIPPED_EAST,
 	DEF_FLIPPED_WEST};
 
-int
-DefReadLocation(use, f, oscale, tptr)
-    CellUse *use;
-    FILE *f;
-    float oscale;
-    Transform *tptr;
+static void
+DefReadLocation(CellUse *use, FILE *f, float oscale, Transform *tptr)
 {
     Rect *r, tr;
     int keyword;
@@ -645,11 +641,11 @@ DefReadLocation(use, f, oscale, tptr)
     GeoTranslateTrans(&t2, (int)roundf(x / oscale), (int)roundf(y / oscale), tptr);
     if (use)
 	DBSetTrans(use, tptr);
-    return 0;
+    return;
 
 parse_error:
     LefError("Cannot parse location: must be ( X Y ) orient\n");
-    return -1;
+    return;
 }
 
 /*