#include "cddefs.h"
#include "cdparser.h"
#include <sys/types.h>
#include <time.h>
Go to the source code of this file.
|
int | a_malloc_failed () |
|
void | AEnd () |
|
int | ABeginSymbol (int SymbolNum, long A, long B) |
|
void | AEndSymbol () |
|
void | ADeleteSymbol (int SymbolNum) |
|
int | AEndCall () |
|
int | ABeginCall (int SymbolNum) |
|
int | APolygon (struct p *Path) |
|
int | AWire (long Width, struct p *Path) |
|
int | ABox (long Length, long Width, long X, long Y, int XDirection, int YDirection) |
|
int | ARoundFlash (long Width, long X, long Y) |
|
int | ALayer (char Technology, Mask) |
|
int | AUserExtension (char Digit, char *Text) |
|
void | AComment (char *Text) |
|
#define RADTODEG 57.29577951 |
int ABeginCall |
( |
int |
SymbolNum | ) |
|
Definition at line 496 of file actions.c.
501 fprintf(stderr,
"C %d ",SymbolNum);
528 sprintf(
TypeOut,
" Symbol%d",SymbolNum);
char(* dSymTabNames)[FILENAMESIZE]
char dSymbolName[FILENAMESIZE]
int ABeginSymbol |
( |
int |
SymbolNum, |
|
|
long |
A, |
|
|
long |
B |
|
) |
| |
Definition at line 45 of file actions.c.
197 CDDesc.dSymbolName[Int1++] = PChar;
287 "Symbol%d",SymbolNum);
322 Long1 = time((time_t *)
NULL);
323 sprintf(
TypeOut,
" Creation Date: %.24s ",
ctime((time_t *)&Long1));
333 struct prpty PrptyCopy;
#define PSTRIPWHITESPACE1
char(* dSymTabNames)[FILENAMESIZE]
char dSymbolName[FILENAMESIZE]
struct prpty * prpty_Succ
struct prpty * dPrptyList
int ABox |
( |
long |
Length, |
|
|
long |
Width, |
|
|
long |
X, |
|
|
long |
Y, |
|
|
int |
XDirection, |
|
|
int |
YDirection |
|
) |
| |
Definition at line 688 of file actions.c.
693 GenBox(stderr,Length,Width,
X,
Y,XDirection,YDirection);
702 if(XDirection == 1
And YDirection == 0){
705 XDirection,YDirection);
708 XDirection,YDirection);
716 struct p *Path,*Pair;
718 Left =
X-(Length >> 1);
719 Right =
X+(Length >> 1);
720 Bottom =
Y-(Width >> 1);
721 Top =
Y+(Width >> 1);
722 C = sqrt((
double)(XDirection*XDirection+YDirection*YDirection));
725 Pair->
pX = (Left*XDirection-Bottom*YDirection-
726 XDirection*
X+YDirection*
Y)/C+
X;
727 Pair->
pY = (Left*YDirection+Bottom*XDirection-
728 YDirection*
X-XDirection*
Y)/C+
Y;
731 Pair->
pX = (Left*XDirection-Top*YDirection-
732 XDirection*
X+YDirection*
Y)/C+
X;
733 Pair->
pY = (Left*YDirection+Top*XDirection-
734 YDirection*
X-XDirection*
Y)/C+
Y;
737 Pair->
pX = (Right*XDirection-Top*YDirection-
738 XDirection*
X+YDirection*
Y)/C+
X;
739 Pair->
pY = (Right*YDirection+Top*XDirection-
740 YDirection*
X-XDirection*
Y)/C+
Y;
743 Pair->
pX = (Right*XDirection-Bottom*YDirection-
744 XDirection*
X+YDirection*
Y)/C+
X;
745 Pair->
pY = (Right*YDirection+Bottom*XDirection-
746 YDirection*
X-XDirection*
Y)/C+
Y;
761 struct prpty PrptyCopy;
struct prpty * prpty_Succ
struct prpty * dPrptyList
void AComment |
( |
char * |
Text | ) |
|
void ADeleteSymbol |
( |
int |
SymbolNum | ) |
|
Definition at line 394 of file actions.c.
405 fprintf(stderr,
"DD %d;\n",SymbolNum);
410 fprintf(stderr,
"Definition Delete of Symbol %d - ignored\n",SymbolNum);
Definition at line 414 of file actions.c.
417 fprintf(stderr,
";\n");
433 struct prpty PrptyCopy;
struct prpty * prpty_Succ
struct prpty * dPrptyList
Definition at line 348 of file actions.c.
char dSymbolName[FILENAMESIZE]
int ALayer |
( |
char |
Technology, |
|
|
Mask |
|
|
) |
| |
Definition at line 823 of file actions.c.
841 if(
CDLayer[Layer].lTechnology == Technology
And 844 CDLayer[Layer].lMask[2] == Mask[2]){
856 if(
CDLayer[Layer].lTechnology ==
' ') {
struct l CDLayer[CDNUMLAYERS+1]
int APolygon |
( |
struct p * |
Path | ) |
|
Definition at line 568 of file actions.c.
589 if(Pair->
pY < Bottom)
596 if(NumVertices == 4){
607 return(
ABox(Right-Left,Top-Bottom,Left+((Right-Left)/2),
608 Bottom+((Top-Bottom)/2),1,0));
629 struct prpty PrptyCopy;
int ABox(long Length, long Width, long X, long Y, int XDirection, int YDirection)
struct prpty * prpty_Succ
struct prpty * dPrptyList
int ARoundFlash |
( |
long |
Width, |
|
|
long |
X, |
|
|
long |
Y |
|
) |
| |
Definition at line 776 of file actions.c.
779 struct p *Path, *NewPath;
808 struct prpty PrptyCopy;
struct prpty * prpty_Succ
struct prpty * dPrptyList
int AUserExtension |
( |
char |
Digit, |
|
|
char * |
Text |
|
) |
| |
Definition at line 869 of file actions.c.
890 if(sscanf(&(Text[1]),
"%s%ld%ld%s",Label,&X,&Y,
TypeOut) < 4)
898 sscanf(&(Text[1]),
"%s%ld%ld",Label,&X,&Y);
899 sprintf(
TypeOut,
"4 %s %d %d",Label,
907 elif(Text[0] ==
'2'){
908 sscanf(&(Text[1]),
"%s%ld%ld%d",Label,&X,&Y,&Layer);
914 sprintf(
TypeOut,
"4 %s %d %d",Label,
933 elif(Digit ==
'5' And (Text[0] <
'0' Or Text[0] >
'9')){
950 sscanf(&(Text[1]),
"%s%ld%ld%d",Label,&X,&Y,&Xform);
954 fprintf(stderr,
"Making label on layer %d\n",
CurrentLayer);
960 struct prpty PrptyCopy;
971 elif(Text[0] <
'0' Or Text[0] >
'9'){
974 while(Text[X] <=
' ') ++
X;
978 elif(Digit ==
'1' And (Text[0] <
'0' Or Text[0] >
'9')){
981 if(strcmp(
TypeOut,
"Array") == 0){
986 elif(Digit ==
'5' And (Text[0] <
'0' Or Text[0] >
'9')){
998 while((Text[i] <
'0' Or Text[i] >
'9')
And Text[i] !=
'\0') ++i;
1000 while(Text[i] >=
'0' And Text[i] <=
'9') ++i;
1002 while(Text[i] <=
' ' And Text[i] !=
'\0') ++i;
1003 size = strlen(&(Text[i])) + 2;
char dSymbolName[FILENAMESIZE]
struct prpty * prpty_Succ
struct prpty * dPrptyList
int AWire |
( |
long |
Width, |
|
|
struct p * |
Path |
|
) |
| |
Definition at line 644 of file actions.c.
673 struct prpty PrptyCopy;
struct prpty * prpty_Succ
struct prpty * dPrptyList