home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / xcalc / xcalc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-15  |  3.2 KB  |  88 lines

  1. /*
  2.  * $XConsortium: xcalc.h,v 1.3 89/12/15 18:48:59 converse Exp $
  3.  * 
  4.  * xcalc.h - symbolic constants for xcalc
  5.  *
  6.  * Copyright 1989 by the Massachusetts Institute of Technology
  7.  *
  8.  * Permission to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted, provided 
  10.  * that the above copyright notice appear in all copies and that both that 
  11.  * copyright notice and this permission notice appear in supporting 
  12.  * documentation, and that the name of M.I.T. not be used in advertising
  13.  * or publicity pertaining to distribution of the software without specific, 
  14.  * written prior permission. M.I.T. makes no representations about the 
  15.  * suitability of this software for any purpose.  It is provided "as is"
  16.  * without express or implied warranty.
  17.  *
  18.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  19.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  20.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  21.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  22.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  23.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  24.  *
  25.  * Author:  Donna Converse, MIT X Consortium
  26.  */
  27.  
  28. #ifdef SIGNALRETURNSINT
  29. #define signal_t int
  30. #else
  31. #define signal_t void
  32. #endif
  33.  
  34. #define kRECIP 0    /* reciprocal */
  35. #define kSQR   1    /* square */
  36. #define kSQRT  2    /* square root */
  37. #define kCLR   3    /* clear */
  38. #define kOFF   4    /* clear and quit */
  39. #define kINV   5    /* inverse */
  40. #define kSIN   6    /* sine */
  41. #define kCOS   7    /* cosine */
  42. #define kTAN   8    /* tangent */
  43. #define kDRG   9    /* degree radian grad */
  44. #define kE     10    /* the natural number e */
  45. #define kEE    11    /* scientific notation */
  46. #define kLOG   12    /* logarithm */
  47. #define kLN    13    /* natural logarithm */
  48. #define kPOW   14    /* power */
  49. #define kPI    15    /* pi */
  50. #define kFACT  16    /* factorial */
  51. #define kLPAR  17    /* left paren */
  52. #define kRPAR  18    /* right paren */
  53. #define kDIV   19    /* division */
  54. #define kSTO   20    /* store */
  55. #define kSEVEN 21    /* 7 */
  56. #define kEIGHT 22    /* 8 */
  57. #define kNINE  23    /* 9 */
  58. #define kMUL   24    /* multiplication */
  59. #define kRCL   25    /* recall */
  60. #define kFOUR  26    /* 4 */
  61. #define kFIVE  27    /* 5 */
  62. #define kSIX   28    /* 6 */
  63. #define kSUB   29    /* subtraction */
  64. #define kSUM   30    /* summation */
  65. #define kONE   31    /* 1 */
  66. #define kTWO   32    /* 2 */
  67. #define kTHREE 33    /* 3 */
  68. #define kADD   34    /* addition */
  69. #define kEXC   35    /* exchange display and memory */
  70. #define kZERO  36    /* 0 */
  71. #define kDEC   37    /* decimal point */
  72. #define kNEG   38    /* negation */
  73. #define kEQU   39    /* equals */
  74. #define kENTR  40    /* enter */
  75. #define kXXY   41    /* exchange X and Y registers */
  76. #define kEXP   42    /* exponent */
  77. #define k10X   43    /* 10 raised to a power */
  78. #define kROLL  44    /* roll stack */
  79. #define kNOP   45    /* no operation */
  80. #define kBKSP  46    /* backspace */
  81.  
  82. #define XCalc_MEMORY    0    /* memory indicator */
  83. #define XCalc_INVERSE   1    /* inverse function indicator */
  84. #define XCalc_DEGREE    2    /* degree indicator */
  85. #define XCalc_RADIAN    3    /* radian indicator */
  86. #define XCalc_GRADAM    4    /* grad indicator */
  87. #define XCalc_PAREN    5    /* parenthesis indicator */
  88.