home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume24 / chemtab / part02 / variables.h < prev    next >
C/C++ Source or Header  |  1991-03-12  |  2KB  |  83 lines

  1. /*
  2.  * chemtab - a periodic table data base (C) 1990 Jim King (pulsar@lsrhs)
  3.  *
  4.  * variables.h    Include file - basically a global file
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include "tune.h"
  9.  
  10. float    x;                /* global find() element */
  11. int    sub1[120],            /* Sorted elements stored here */
  12.     xp, yp,                /* Stop job handling */
  13. #ifdef    LASERPRT
  14.     laser,                /* Laser print? */
  15. #endif    LASERPRT
  16. #ifdef  ReGIS
  17.     regis,                /* regis on/off flag */
  18. #endif     ReGIS
  19. #ifdef    TRANSCRIPT
  20.     trans,                /* transcript flag */
  21. #endif  TRANSCRIPT
  22.     gtot;                /* total of sorted elements */
  23. #ifdef    LASERPRT
  24. FILE    *lsr;
  25. #endif    LASERPRT
  26. FILE    *fp;                /* File pointer for the above flag */
  27.  
  28. char    lnm[80];            /* User's last name for transcript */
  29.  
  30. struct dung {                /* Sorting structure */
  31.     int    wch,
  32.         sgn;
  33.     float    amt;
  34. } dosort[3];
  35.  
  36. static char    *mopts[] = {        /* Main menu options */
  37.     0,
  38.     "List information regarding one element",
  39.     "Choose element's characteristics",
  40.     "List information on all selected elements",
  41.     "View periodic table showing positions of selected elements",
  42.     "Use the graphing module",
  43.     "Save your transcripts, Print them, and Quit",
  44.     0
  45. };
  46.  
  47. /* If you are looking here because you want to change the 'close values'
  48.  * and you do not understand the abbreviations in 'closevalues' then
  49.  * the following list is in order (note the first element is
  50.         "0",            "0",        "0",        0,
  51.  * which means that the first value in the closevalues is 0
  52.  */
  53.  
  54. static struct op {
  55.     char    chst[30],
  56.         upline[20],
  57.         dnline[20];
  58.     int    dnum;
  59. } sopts[] = {            /* Selecting options */
  60.     "0",            "0",        "0",        0,
  61.     "Atomic Number",    "Greater Than",    "Less Than",    0,
  62.     "Atomic Mass",        "Greater Than",    "Less Than",    3,
  63.     "Family (going up-dn)",    "Greater Than",    "Less Than",    0,
  64.     "Row (going left-rt)",    "Greater Than",    "Less Than",    0,
  65.     "Valence Electrons",    "More Than",    "Less Than",    0,
  66.     "Melting Temperature",    "Greater Than",    "Less Than",    0,
  67.     "Boiling Temperature",    "Greater Than",    "Less Than",    0,
  68.     "Ionization Energy",    "Greater Than",    "Less Than",    0,
  69.     "Discovery Year",    "After",    "Before",    0,
  70.     "Electronegativity",    "Greater Than",    "Less Than",    1,
  71.     "Specific Heat",    "Greater Than",    "Less Than",    3,
  72.     "Density",        "Greater Than",    "Less Than",    2,
  73.     "Atomic Radius",    "Greater Than",    "Smaller Than",    2,
  74.     "Return to Main Menu",    "0",        "0",        0,
  75.     "Clear ALL Characteristics",    "0",    "0",        0,
  76.     "0",            "0",        "0",        0
  77. };
  78.  
  79. #define    EQUAL    0        /* Constants */
  80. #define GREATER    1
  81. #define LESS    2
  82. #define    CLOSE    3
  83.