home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / EFFO / pd8.lzh / SRC / version.c < prev    next >
Text File  |  1990-04-13  |  8KB  |  153 lines

  1. /* N.B. please increment version and date and note each change. */
  2.  
  3. #include "screen.h"
  4.  
  5. static char vmsg[] = "Version 4.13 April 3, 1990";
  6.  
  7. /*
  8.  * 4.13 3/9/90    add support for second user-def object: "object y"
  9.  *        fix bug updating obj ref epoch (always used PARABOLIC's)
  10.  *        fix Turbo C workaround that prevented plotting sun dist.
  11.  *      3/13    fix bug preventing searching on separation column for objx
  12.  *    3/22    revamp elliptical object definition parameters to match AA.
  13.  *        permit exiting/redrawing properly from within a popup too.
  14.  *        add a bit more precision to plot labels.
  15.  *        let plot files have comments too, ie, leading *'s
  16.  *    3/23    add "Lookup" to search config file for objects.
  17.  *    3/30    separate database from config file; add -d and EPHEMDB env var.
  18.  *        catch SIGFPE and longjmp() back into main interation loop.
  19.  *    4/3    add magnitude to fixed-object database fields.
  20.  * 4.12 1/12/90    lay framework for orbital element support for object x.
  21.  *    1/15    fix slight bug related to nutation.
  22.  *        plot fields in the same order they were selected.
  23.  *    1/18       add copywrite notice in main.c.
  24.  *        note <sys/time.h> in time.c for BSD 4.3.
  25.  *    1/20    work on fixed and parabolic orbital elements.
  26.  *      1/25    work on elliptical orbital elements.
  27.  *    2/1    work on objx's magnitude models.
  28.  *        add confirmation question before quitting.
  29.  *      2/6    add d,o,z special speed move chars.
  30.  *    2/8    watch: add LST to night sky and maintain RTC time back in main.
  31.  *    2/12    fix bug in timezone related to daytime flag.
  32.  *        add w (week) watch advance key code.
  33.  *        add cautionary note about no string[s].h to Readme
  34.  *    2/15    allow for precession moving dec outside range -90..90.
  35.  *    2/19    fix bug that wiggled cursor during plotting in rise/set menu.
  36.  *    2/20    fix bug preventing DAWN/DUSK/LON from being used in search func.
  37.  * 4.11 12/29    add PC_GRAPHICS option in mainmenu.c (no effect on unix version)
  38.  *      1/3/90    fix twilight error when sun never gets as low as -18 degs.
  39.  *      1/4/90    always find alt/az from eod ra/dec, not from precessed values.
  40.  *    1/9/90    lastmjd in plans.c was an int: prevented needless recalcs.
  41.  * 4.10 12/6/89 fix transit times of circumpolar objects that don't rise.
  42.  *              fix plotting search function when searching is not on.
  43.  *    12/12    fix Objx rise/set bug.
  44.  *      12/21    don't erase last watch positions until computed all new ones.
  45.  *      12/23   added USE_BIOSCALLS to io.c: Doug McDonald's BIOS calls
  46.  *    12/27    allow dates to be entered as decimal years (for help with plots)
  47.  *    12/27    remove literal ESC chars in strings in io.c.
  48.  * 4.9 11/28/89 provide two forms of non-blocking reads for unix in io.c
  49.  *     11/30/89 take out superfluous ESC testing in chk_arrow().
  50.  *              guard better against bogus chars in sel_fld().
  51.  *        use %lf in scanf's.
  52.  *              command-line arg PROPTS+ adds to settings from config file.
  53.  *        change (int) casts in moduloes to (long) for 16bit int systems.
  54.  * 4.8 10/28/89 use doubles everywhere
  55.  *     10/31/89    add direct planet row selection codes.
  56.  *     11/2/89  improve compiler's fieldname parser.
  57.  *     11/3/89    switch from ESC to q for "go on" (CBREAK ESC not very portable)
  58.  *     11/6/89    allow plotting the search function too.
  59.  *     11/8/89  suppress screen updates while plotting and nstep > 1.
  60.  *     11/9/89    fix bug prohibiting plotting venus' sdist and objx's transit.
  61.  *     11/9/89    add option to plot in polar coords.
  62.  *     11/12/89    fix bug related to updating timezone name when it is changed.
  63.  *     11/21/89 fix bug in when to print info about object-x
  64.  *     11/21/89    increase MAXPLTLINES to 10 (to ease plotting all planet seps)
  65.  *     11/22/89 allow setting fields from command line too.
  66.  * 4.7 10/13/89 start adding general searching feature. start with flogging.
  67.  *     10/17/89 add compiler, first menu ideas, get binary srch working.
  68.  *     10/18/89 add parabolic-extrema and secant-0 solvers.
  69.  *     10/23/89 finish up new idea of one-line control and set-up "popup" menus.
  70.  * 4.6 10/29/89 improve transit circumstances by iterating as with rise/set.
  71.  *        allow changing lst.
  72.  *        show Updating message at better times.
  73.  *        avoid overstrikes while watching and add trails option.
  74.  *        allow for Turbo-C 2.0 printf bug using %?.0f".
  75.  * 4.5  9/24/89 add third table of all mutual planet angular distances.
  76.  * 4.4  9/21/89 add second planet table with rise/set times.
  77.  *        all rise/set times may now use standard or adaptive horizons.
  78.  * 4.3   9/6/89 NM/FM calendar overstikes now use local time (was ut).
  79.  *        display elongation of object x.
  80.  *        better handling of typo when asking for refraction model.
  81.  * 4.2    7/24/89    specify 7 digits to plot file (not just default to 6)
  82.  * 4.1  7/18/89 use buffered output and fflush in read_char().
  83.  * 4.0   7/8/89    add simple sky and solarsystem plotting (and rearrange fields)
  84.  *        change mars' .cfg mnemonic from a to m.
  85.  *        clean up nstep/NEW CIR handling
  86.  *        quit adding our own .cfg suffixes, but...
  87.  *        add looking for $HOME/.ephemrc (Ronald Florence)
  88.  *        drop -b
  89.  *        no longer support SITE
  90.  * 3.17 6/15/89 misspelt temperature prompt; sun -/= bug. (Mike McCants)
  91.  *        change sun() to sunpos() for sake of Sun Microsystems.
  92.  * 3.16  6/9/89 allow JD to be set and plotted.
  93.  *        c_clear (LATTIC_C) should use J not j (Alex Pruss)
  94.  *        support SIGINT (Ronald Florence)
  95.  * 3.15  6/8/89 forget SIMPLETZ: now TZA and TZB.
  96.  * 3.14  6/6/89 add back borders but allow turning off via -b
  97.  * 3.13 5/26/89 fix Day/Nite picking loc bug.
  98.  * 3.12 5/25/89 add SIMPLETZ option to time.c for systems w/o tzset()
  99.  *        files; couldn't plot dayln or niteln.
  100.  * 3.11 5/16/89 local time prompt said utc; add NiteLn; check for bad plot
  101.  * 3.10 4/27/89 allow caps for moving cursor around too
  102.  * 3.9   4/5/89 discard leading termcap delay digits, for now
  103.  * 3.8   3/2/89 shorten displayed precision, add heliocentric lat/long
  104.  * 3.7  2/13/89 change to ^d to quit program.
  105.  * 3.6   2/7/89 try adding .cfg suffix if can't find config file
  106.  * 3.5   2/2/89 sunrise/set times based on actual sun size and pressure/temp
  107.  * 3.4  1/22/89 calendar and all rise/set times based on local date, not utc
  108.  * 3.3   1/6/89 add z to plot files (still don't plot it however)
  109.  * 3.2   1/3/89 if set date/time then time does not inc first step
  110.  * 3.1   1/1/89 user def. graph labels; nstep/stpsz control; genuine c_eol
  111.  * 3.0 12/31/88 add graphing; add version to credits.
  112.  * 2.7 12/30/88 add version to credits.
  113.  * 2.6 12/28/88 twilight defined as 18 rather than 15 degrees below horizon
  114.  * 2.5 12/26/88 remove trace capability; add screen shadowing: ^l.
  115.  * 2.4 10/31/88 add credits banner, -s turns it off; savings time fix.
  116.  * 2.3  9/23/88 exchange Altitude/Elevation titles (no code changes)
  117.  * 2.2  9/20/88 more caution in aaha_aux() guarding acos() arg range
  118.  * 2.1  9/14/88 moon phase always >= 0 to match planets convention
  119.  * 2.0  9/13/88 add version ^v option
  120.  */
  121.  
  122. version()
  123. {
  124.     f_msg (vmsg);
  125. }
  126.  
  127. static char *cre[] = {
  128. "Ephem - an interactive astronomical ephemeris program",
  129. vmsg,
  130. "",
  131. "Copyright (c) 1990 by Elwood Charles Downey",
  132. "",
  133. "Permission is granted to make and distribute copies of this program",
  134. "free of charge, provided the copyright notice and this permission",
  135. "notice are preserved on all copies.  All other rights reserved.",
  136. "",
  137. "Many formulas and tables are based, with permission, on material found in",
  138. "\"Astronomy with your Personal Computer\"",
  139. "by Dr. Peter Duffett-Smith, Cambridge University Press, (c) 1985",
  140. "",
  141. "type any key to continue..."
  142. };
  143. credits()
  144. {
  145.     int r = 6;    /* first row of credits message */
  146.     int l;
  147.  
  148.     c_erase();
  149.     for (l = 0; l < sizeof(cre)/sizeof(cre[0]); l++)
  150.         f_string (r++, (NC - strlen(cre[l]))/2, cre[l]);
  151.     (void) read_char();    /* wait for any char to continue */
  152. }
  153.