home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / calctool / part01 / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-29  |  1.6 KB  |  45 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. /*    Module:        globals.c                    */
  20. /*                                    */
  21. /*    Function:    Define global variables                */
  22. /*                                    */
  23. /*    Change History:    14 Nov 86    Creation            */
  24. /*                                    */
  25. /************************************************************************/
  26.  
  27. #include    "manifest.h"
  28. #include    "globals.h"
  29.  
  30. int    curr_mode    = SCIENTIFIC;
  31. int    inverted    = FALSE;
  32. int    temp_inverted    = FALSE;
  33.  
  34. int    curr_base    = DECIMAL;
  35. int    ee_mode        = FALSE;
  36. int    eng_mode    = FALSE;
  37. int    edit_ee        = FALSE;
  38. int    trig_mode    = DEG;
  39. int    curr_width[5]    = {-1, 16, 0, 32, 32};
  40.  
  41. double    v_stack[MAX_STACK] = {0.0};
  42. int    o_stack[MAX_STACK] = {0};
  43. int    v_top        = 0;
  44. int    o_top        = 0;
  45.