History log of /freebsd-10.2-release/usr.bin/calendar/calendar.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 285291 08-Jul-2015 bapt

MFC: r279597 (and 259152,259219 as dependency)

Make calendar(1) usable again. rework the calendar parser so that it is
compatible with documented format:

Support includes surrounded by '"' or '<' '>'
Print warnings about bad syntax
Correctly navigate through include directories to find calendar files
Correctly support multiple includes

While here:

MFC: 262011 (by eadler)

calendar(1): don't segfault in invalid input

When the user supplies an invalid number of days provide a useful error message
instead of segfaulting.

Approved by: re (gjb)


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 255715 19-Sep-2013 db

- calendar uses cpp internally, this diff removes this usage and
substitutes a limited subset cpp processor internally.

PR: src/178463
Approved by: re (gjb)


# 251647 12-Jun-2013 grog

Handle some expression regressions.
Explicitly use GNU cpp for preprocessing.
Remove explicit debugging code.
Change some variable names to be less confusing.
Improve some comments.
Improve indentation.

PR: 162211
168785
MFC after: 2 weeks


# 218797 18-Feb-2011 osa

Replace hard-coded value by Julian2Gregorian converter function.


# 216697 25-Dec-2010 osa

Fix typo (Pashka -> Paskha).


# 212035 30-Aug-2010 edwin

For calendars which don't match the solar-based Gregorian calendar,
be able to specify a year string in an entry.


# 205872 30-Mar-2010 edwin

On request of joel@:

- Remove the 3rd clause of the UC Berkeley copyrighted files.
- For the files added copyrighted by me, move the "All rights
reserved" to the next line.


# 205821 29-Mar-2010 edwin

Long awaited update to the calendar system:

- Repeating events which span multiple years (because of -A, -B or
just the three days before the end of the year).

- Support for lunar events (full moon, new moon) and solar events
(equinox and solstice, chinese new year). Because of this, the
options -U (UTC offset) and -l (longitude) are available to
compensate if reality doesn't match the calculated values.

MFC after: 1 month


# 181323 05-Aug-2008 edwin

Move functions which are only locally used into their C files and
make them static.

usage() in calendar.c
event_*() in io.c

PR: bin/118644
Approved by: bde@ (mentor)


# 181322 05-Aug-2008 edwin

style(9)ify usr.bin/calendar

PR: bin/118644
Approved by: bde@ (mentor)
MFC after: 1 week


# 170447 09-Jun-2007 grog

Sort events by date.
Correct long-standing off-by-one error in -W option.

Submitted by: edwin@

Shorten some long lines. These files are still not completely
style(9) compliant.


# 169343 07-May-2007 dwmalone

ANSIfy function definitions.
Move some extern declarations to a header file.
Remove an unneeded extern declaration for optarg.


# 129814 28-May-2004 stefanf

Include <sys/uio.h> for the complete type of struct iovec.

Approved by: das (mentor)


# 98181 13-Jun-2002 grog

Add two new options:

-W is like -A (number of days in the future to consider, but also
specifies that we don't want special treatment at weekends.
-F changes our notion of "Friday" (the day before the weekend).

Arguably, calendar(1) is broken to have special treatment of weekends
by default, but this method maintains POLA.


# 92920 22-Mar-2002 imp

remove __P


# 87235 02-Dec-2001 markm

WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)
Use __FBSDID().
Sort some headers.


# 59945 04-May-2000 phantom

Add missing $FreeBSD$ tags


# 46081 25-Apr-1999 imp

More egcs warning fixes:
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0

Reviewed by: obrien and chuckr


# 15720 10-May-1996 ache

Allow to configure national Easter names.
Speedup my national months/days handling code.


# 15714 10-May-1996 ache

Localize it
Handle Orthodox Eastern
-Wall cleanup


# 15066 06-Apr-1996 mpp

Change calendar to report the actual date for variable day events.
E.g. for Easter, and entries like "04/SunFirst" calendar will
now report:

04/05* Good Friday (2 days before easter)
04/07* First Sunday...

instead of:

Easter-2 Good Friday...
04/SunFirst First Sunday...

I also modified the calendar files to use the variable day format
for a lot of events so that they will be reported correctly.
E.g. U.S. daylight savings time is now listed as:

04/SunFirst Daylight savings time...

There are still a lot of wrong dates in there for some events
that move from year to year, but I don't have a good calendar handy
right now that I can use for reference.


# 13877 03-Feb-1996 wosch

Submitted by: pst
add forgotten file calendar.h. Sorry.