home *** CD-ROM | disk | FTP | other *** search
/ gdead.berkeley.edu / gdead.berkeley.edu.tar / gdead.berkeley.edu / pub / cad-tools / ciftomann.tar / Include / macros.h < prev    next >
Text File  |  1988-01-28  |  1KB  |  32 lines

  1. /*
  2.  * macros.h
  3.  *
  4.  * Copyright -C- 1981 Kenneth H. Keller, Giles C. Billingsley
  5.  * sccsid "%W%  %G%"
  6.  *
  7.  *     KIC is a graphics editor that was developed by the integrated
  8.  * circuits group of the Electronics Research Laboratory and the
  9.  * Department of Electrical Engineering and Computer Sciences at
  10.  * the University of California, Berkeley, California.  The program
  11.  * KIC is available free of charge to any interested party.
  12.  * The sale, resale, or use of this program for profit without the
  13.  * express written consent of the Department of Electrical Engineering
  14.  * and Computer Sciences, University of California, Berkeley, California,
  15.  * is forbidden.
  16.  */
  17.  
  18.  
  19. #define EOS '\0'
  20. #define elif else if
  21. #define loop for(;;)
  22. #define True 1
  23. #define False 0
  24. #define And &&
  25. #define Or ||
  26. #define Not !
  27. #define max(Dragon,Eagle) ((Dragon) > (Eagle) ? (Dragon) : (Eagle))
  28. #define min(Dragon,Eagle) ((Dragon) < (Eagle) ? (Dragon) : (Eagle))
  29. #define abs(Dragon) ((Dragon) >= 0 ? (Dragon) : (-(Dragon)))
  30. #define SwapInts(Dragon,Eagle) {int ShakingCrane; ShakingCrane = Dragon; Dragon = Eagle; Eagle = ShakingCrane;}
  31.  
  32.