[4563] in SIPB bug reports

home help back first fref pref prev next nref lref last post

[daemon@ATHENA.MIT.EDU : moonphase]

daemon@ATHENA.MIT.EDU (sekullbe@MIT.EDU)
Mon Apr 25 03:22:00 1994

From: sekullbe@MIT.EDU
Date: Mon, 25 Apr 94 03:21:34 EDT
To: bug-sipb@MIT.EDU
Cc: rjbarbal@MIT.EDU


Moonphase, at least as well as I could just test it, (i.e. I ran it a
bunch of times) will give the proper output now, and will also not spew
warnings all over the place when compiled. Isn't that nice?

I don't know why this fixed it. Something to do with shoving prototypes
around. And it may not even be the same code as what's in there now as
far as I know- it's something I got from zeno once. But here are some
diffs in case the source is somewhere (I wasn't able to find it way back
when when I looked)

Actual source is in /afs/sipb/user/sekullbe/src/moon/zmoon.c and a
compiled version is in there as well, compiled with gcc & no other
flags. I dunno the Right Way to put things in the sipb locker, or if ya
want things optimized, etc.


*** zmoon.c~    Wed Aug 11 12:56:53 1993
--- zmoon.c     Mon Apr 25 02:55:38 1994
***************
*** 17,22 ****
--- 17,26 ----
        0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
  };
  
+ double dtor();
+ double adj360();
+ double potm();
+ 
  main()
  {
      long tmnow;
***************
*** 57,65 ****
  {
      char *cp=buf;
  
- double dtor();
- double adj360();
- double potm();
  
  double days;   /* days since EPOCH */
  double phase;  /* percent of lunar surface illuminated */
--- 61,66 ----

home help back first fref pref prev next nref lref last post