1 /*
2  * gdsreader - simple Calma parser/printer tool
3  * Copyright (C) 1999 Serban-Mihai Popescu, serbanp@ix.netcom.com
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 #define DEFAULT_CONFIG_FILE ".layers.config"
20 #define DEFAULT_HPGL_FILE "result.plt"
21 #define DEFAULT_PS_FILE "result.ps"
22 #define DEFAULT_POV_FILE "result.pov"
23 
24 
25 #define InternalScaleFactor 100
26 #define BIGVAL 2147483647
27 #define CURRENTMAG 1.0
28 #define CURRENTANGLE 0.0
29 
30 #define BUTT_END 0
31 #define ROUND_END 1
32 #define EXTENDED_END 2
33 #define CUSTOMPLUS_END 4
34 
35 #define TOP 0
36 #define MIDDLE 1
37 #define BOTTOM 2
38 #define LEFT 0
39 #define CENTER 1
40 #define RIGHT 2
41 
42 #define NOFILL 0
43 #define FILL 1
44 #define HATCH 2
45 #define CROSSHATCH 3
46 
47 #define HEADER 0
48 #define BGNLIB 1
49 #define LIBNAME 2
50 #define UNITS 3
51 #define ENDLIB 4
52 #define BGNSTR 5
53 #define STRNAME 6
54 #define ENDSTR 7
55 #define BOUNDARY 8
56 #define PATH 9
57 #define SREF 10
58 #define AREF 11
59 #define TEXT 12
60 #define LAYER 13
61 #define DATATYPE 14
62 #define WIDTH 15
63 #define XY 16
64 #define ENDEL 17
65 #define SNAME 18
66 #define COLROW 19
67 #define TEXTNODE 20
68 #define NODE 21
69 #define TEXTTYPE 22
70 #define PRESENTATION 23
71 #define SPACING 24
72 #define STRING 25
73 #define STRANS 26
74 #define MAG 27
75 #define ANGLE 28
76 #define UINTEGER 29
77 #define USTRING 30
78 #define REFLIBS 31
79 #define FONTS 32
80 #define PATHTYPE 33
81 #define GENERATIONS 34
82 #define ATTRTABLE 35
83 #define STYPTABLE 36
84 #define STRTYPE 37
85 #define ELFLAGS 38
86 #define ELKEY 39
87 #define LINKTYPE 40
88 #define LINKKEYS 41
89 #define NODETYPE 42
90 #define PROPATTR 43
91 #define PROPVALUE 44
92 #define BOX 45
93 #define BOXTYPE 46
94 #define PLEX 47
95 #define BGNEXTN 48
96 #define ENDTEXTN 49
97 #define TAPENUM 50
98 #define TAPECODE 51
99 #define STRCLASS 52
100 #define RESERVED 53
101 #define FORMAT 54
102 #define MASK 55
103 #define ENDMASKS 56
104 #define LIBDIRSIZE 57
105 #define SRFNAME 58
106 #define LIBSECUR 59
107 #define UNKNOWN 60
108