--- ray/src/gen/gensky.c 1996/07/16 14:14:50 2.17 +++ ray/src/gen/gensky.c 2003/02/22 02:07:23 2.20 @@ -1,9 +1,6 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: gensky.c,v 2.20 2003/02/22 02:07:23 greg Exp $"; #endif - /* * gensky.c - program to generate sky functions. * Our zenith is along the Z-axis, the X-axis @@ -15,13 +12,16 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + +#include + #include #include #include "color.h" -extern char *strcpy(), *strcat(), *malloc(); extern double stadj(), sdec(), sazi(), salt(), tz2mer(); #ifndef PI @@ -59,9 +59,13 @@ struct { "AST", 60, "ADT", 45, "NST", 52.5, "NDT", 37.5, "GMT", 0, "BST", -15, - "WET", -15, "WETDST", -30, - "MET", -30, "METDST", -45, - "MEZ", -30, "MESZ", -45, + "CET", -15, "CEST", -30, + "EET", -30, "EEST", -45, + "AST", -45, "ADT", -60, + "GST", -60, "GDT", -75, + "IST", -82.5, "IDT", -97.5, + "JST", -135, "NDT", -150, + "NZST", -180, "NZDT", -195, "", 0 }; /* required values */ @@ -162,7 +166,7 @@ char *argv[]; else userror("bad option"); - if (fabs(s_meridian-s_longitude) > 30*PI/180) + if (fabs(s_meridian-s_longitude) > 45*PI/180) fprintf(stderr, "%s: warning: %.1f hours btwn. standard meridian and longitude\n", progname, (s_longitude-s_meridian)*12/PI);