aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/calendar/calendar.h
Commit message (Collapse)AuthorAgeFilesLines
* Rework calendar(1) parserBaptiste Daroussin2015-03-041-4/+0
| | | | | | | | | | | | | Support includes surrounded by '"' or '<' '>' Print warnings about bad syntax Correctly navigate through include directories to find calendar files Correctly support multiple includes Tested by: gjb MFC after: 1 week Notes: svn path=/head/; revision=279597
* - calendar uses cpp internally, this diff removes this usage andDiane Bruce2013-09-191-1/+6
| | | | | | | | | | substitutes a limited subset cpp processor internally. PR: src/178463 Approved by: re (gjb) Notes: svn path=/head/; revision=255715
* Handle some expression regressions.Greg Lehey2013-06-121-3/+3
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=251647
* Replace hard-coded value by Julian2Gregorian converter function.Sergey A. Osokin2011-02-181-0/+1
| | | | Notes: svn path=/head/; revision=218797
* Fix typo (Pashka -> Paskha).Sergey A. Osokin2010-12-251-1/+1
| | | | Notes: svn path=/head/; revision=216697
* For calendars which don't match the solar-based Gregorian calendar,Edwin Groothuis2010-08-301-0/+1
| | | | | | | be able to specify a year string in an entry. Notes: svn path=/head/; revision=212035
* On request of joel@:Edwin Groothuis2010-03-301-4/+0
| | | | | | | | | - 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. Notes: svn path=/head/; revision=205872
* Long awaited update to the calendar system:Edwin Groothuis2010-03-291-29/+149
| | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=205821
* Move functions which are only locally used into their C files andEdwin Groothuis2008-08-051-19/+0
| | | | | | | | | | | | | make them static. usage() in calendar.c event_*() in io.c PR: bin/118644 Approved by: bde@ (mentor) Notes: svn path=/head/; revision=181323
* style(9)ify usr.bin/calendarEdwin Groothuis2008-08-051-36/+40
| | | | | | | | | PR: bin/118644 Approved by: bde@ (mentor) MFC after: 1 week Notes: svn path=/head/; revision=181322
* Sort events by date.Greg Lehey2007-06-091-1/+15
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=170447
* ANSIfy function definitions.David Malone2007-05-071-1/+2
| | | | | | | | Move some extern declarations to a header file. Remove an unneeded extern declaration for optarg. Notes: svn path=/head/; revision=169343
* Include <sys/uio.h> for the complete type of struct iovec.Stefan Farfeleder2004-05-281-0/+2
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129814
* Add two new options:Greg Lehey2002-06-131-0/+1
| | | | | | | | | | | | -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. Notes: svn path=/head/; revision=98181
* remove __PWarner Losh2002-03-221-15/+15
| | | | Notes: svn path=/head/; revision=92920
* WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)Mark Murray2001-12-021-1/+1
| | | | | | | | Use __FBSDID(). Sort some headers. Notes: svn path=/head/; revision=87235
* Add missing $FreeBSD$ tagsAlexey Zelkin2000-05-041-0/+2
| | | | Notes: svn path=/head/; revision=59945
* More egcs warning fixes:Warner Losh1999-04-251-2/+2
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=46081
* Allow to configure national Easter names.Andrey A. Chernov1996-05-101-0/+6
| | | | | | | Speedup my national months/days handling code. Notes: svn path=/head/; revision=15720
* Localize itAndrey A. Chernov1996-05-101-1/+3
| | | | | | | | Handle Orthodox Eastern -Wall cleanup Notes: svn path=/head/; revision=15714
* Change calendar to report the actual date for variable day events.Mike Pritchard1996-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=15066
* Submitted by: pstWolfram Schneider1996-02-031-0/+65
add forgotten file calendar.h. Sorry. Notes: svn path=/head/; revision=13877