home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / calctool / part02 / manifest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-29  |  1.7 KB  |  54 lines

  1. /************************************************************************/
  2. /*    Copyright 1988 by Chuck Musciano and Harris Corporation        */
  3. /*                                    */
  4. /*    Permission to use, copy, modify, and distribute this software    */
  5. /*    and its documentation for any purpose and without fee is    */
  6. /*    hereby granted, provided that the above copyright notice    */
  7. /*    appear in all copies and that both that copyright notice and    */
  8. /*    this permission notice appear in supporting documentation, and    */
  9. /*    that the name of Chuck Musciano and Harris Corporation not be    */
  10. /*    used in advertising or publicity pertaining to distribution    */
  11. /*    of the software without specific, written prior permission.    */
  12. /*    Chuck Musciano and Harris Corporation make no representations    */
  13. /*    about the suitability of this software for any purpose.  It is    */
  14. /*    provided "as is" without express or implied warranty.        */
  15. /************************************************************************/
  16.  
  17. /************************************************************************/
  18. /*                                    */
  19. /*    Manifest constants                        */
  20. /*                                    */
  21. /************************************************************************/
  22.  
  23. #define        PRIVATE            static
  24. #define        PUBLIC            extern
  25.  
  26. #define        PI            ((double) 3.14159265358979323846)
  27. #define        E            ((double) 2.71828182845904523536)
  28.  
  29. #define        SCIENTIFIC        0
  30. #define        PROGRAMMER        2
  31.  
  32. #define        BINARY            2
  33. #define        OCTAL            8
  34. #define        DECIMAL            10
  35. #define        HEXADECIMAL        16
  36.  
  37. #define        DEG            0
  38. #define        RAD            1
  39. #define        GRAD            2
  40.  
  41. #define        MAX_MEMORY        42
  42. #define        MAX_STACK        100
  43.  
  44. #define        index_of(x)        ((x == BINARY)? 1 : ((x == OCTAL)? 3 : 4))
  45.  
  46. #ifndef    NULL
  47. #define        NULL            0
  48. #endif    NULL
  49.  
  50. #ifndef    TRUE
  51. #define        TRUE            1
  52. #define        FALSE            0
  53. #endif    TRUE
  54.