Jspice3
cdmacs.h
Go to the documentation of this file.
1 /***************************************************************************
2 SCED - Schematic Capture Editor
3 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
4 Copyright 1990 Regents of the University of California. All rights reserved.
5 Authors: 1981 Giles C. Billingsley (parts of KIC layout editor)
6  1992 Stephen R. Whiteley
7 ****************************************************************************/
8 
9 #define EOS '\0'
10 #define elif else if
11 #define loop for(;;)
12 #define True 1
13 #define False 0
14 #define And &&
15 #define Or ||
16 #define Not !
17 #define Max(Dragon,Eagle) ((Dragon) > (Eagle) ? (Dragon) : (Eagle))
18 #define Min(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
19 #define Abs(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
20 #define SwapInts(Dragon,Eagle) {long ShakingCrane; ShakingCrane = Dragon; Dragon = Eagle; Eagle = ShakingCrane;}
21 #define alloc(type) (struct type *) tmalloc(sizeof(struct type))
22 #define tfree(x) (txfree((char*)x), x = 0)