christos
bb58ba64b2
- knf
...
- use cpp -traditional, since the default has now changed. We want to allow
unmatched single quotes!
- use fparseln, instead of a fixed 2k buffer.
- make all locals static and move to the top. This is so we can eventually
make calendar understand languages other than us_en
- add braces and continue's to clarify things.
- replace gratuitous fprintf uses with warnx.
- replace vforks() with forks() since we tried to print errors with stdio.
- add more warnings so that we know how things fail.
XXX: Eventually we'll have to remove the cpp dependency, and we should:
- make it use m4 instead [bad, breaks compatibility]
or
- add a small cpp like parser for #include [bad, too much code]
2001-12-04 15:55:32 +00:00
wiz
972bdd863c
Use .Bd -literal instead of -unfilled.
2001-12-01 18:52:13 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
wiz
397bf83de7
Fix description of Thanksgiving Day per misc/14519 by Lawrence Doan,
...
and add a '*' since it's a moving target.
2001-11-10 08:21:07 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
mjl
134be573b3
Fix spelo: diffentiation -> differentiation
2001-06-29 23:33:02 +00:00
cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +00:00
cgd
9725bb291b
__CONCAT does token pasting, not string concatnation. if something like:
...
__CONCAT("foo","bar");
actually works to concantate strings, it's because the preprocessor expands
it into "foo""bar" as separate strings, and then ANSI string concatenation
is performed on that. It's more straightforward to just use ANSI string
concatenation directly, and newer GCCs complain (rightly) about misuse
of token pasting.
2000-12-20 01:03:16 +00:00
christos
e8048693f8
Open only plain files [please someone add O_REG_ONLY]. Since /etc/daily
...
runs calendar -a, a malicious user can put a fifo in his home directory
to prevent calendar from completing. Many thanks to: dynamo@ime.net
2000-11-29 15:29:51 +00:00
simonb
2c0eddaf19
Don't declare 'extern opt*' getopt variables.
...
Don't need to declare __progname in getmmdd() - it's already done earlier
in this file.
2000-04-14 06:07:14 +00:00
briggs
ec0bcc8e62
Add entry for birthday of John Towner Williams (08 Feb 1932). He's most
...
well-known for his movie scores, which include Star Wars, E.T., Close
Encounters of the Third Kind, Schindler's List, Indiana Jones (all
three), and many, many more. He was also the 19th conductor of the
Boston Pops.
2000-02-09 13:05:55 +00:00
mason
02a7de3c63
Fixed wording error.
1999-12-03 15:09:24 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
lukem
3f8c4dac86
revert previous
1999-11-02 10:55:47 +00:00
lukem
0895d2339e
remove superfluous '-' in getopt string
1999-11-02 10:52:49 +00:00
briggs
042ade9674
Get pedantic about Pioneer's achievements. It was Pioneer 10
...
in 1983 that past Neptune's orbit. That does not, however, mean that it
left the solar system since the solar system is defined by the heliosphere.
1999-06-13 18:52:28 +00:00
kleink
5c1e52ca24
Fix spelling of Gauss' fist name.
1999-05-02 18:41:41 +00:00
hwr
3be15b9a38
Remove duplicated entry.
1999-04-11 12:56:15 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
christos
9b6b9cac77
- factor out common code
...
- char -> unsigned char
1998-11-06 22:56:38 +00:00
hwr
28a88d13b8
Typo *sigh*
1998-10-21 20:24:11 +00:00
hwr
1332e7b200
Jon Postel died ;-(
1998-10-21 17:44:05 +00:00
wsanchez
1426fb14d2
Use __CONCAT to concatenate strings "-I" and _PATH_CALENDARS.
1998-10-12 20:51:06 +00:00
wsanchez
76847494e0
Replace _PATH_INCLUE with _PATH_CALENDARS for clarity.
1998-10-12 20:38:55 +00:00
kleink
20eda71b18
It's sufficient to list Janis Joplin's death once only.
1998-10-02 18:19:05 +00:00
lukem
9dee5d2b46
don't install in /usr/share if NOSHARE is defined
1998-09-27 17:22:03 +00:00
mycroft
519d858510
__AUDIT__ cleanup.
1998-07-28 19:22:54 +00:00
mycroft
f9f7e98dab
const poisoning.
1998-07-27 07:41:31 +00:00
kleink
c31696e747
Need <time.h> for time(), localtime(), strftim() and mktime() prototypes.
1998-04-01 20:50:17 +00:00
christos
ae32ae7441
- Y2K fixes
...
- fix usage message
1998-02-04 15:19:50 +00:00
lukem
0b3de1cab3
WARNSify, fix .Nm usage, deprecate register
1997-10-18 12:27:31 +00:00
thorpej
a73d0efd45
Enhancements from Ty Sarna <tsarna@endicor.com>, per PR #3935 . Allow
...
user to:
- get entries from a file other than "calendar".
- get entries for a different date than today.
- get entries for a whole week in advance, or only one day.
1997-08-26 19:58:10 +00:00
fair
80b4ae52e8
fix PR#3278, add some other dates taken from historical sources available on the web
1997-08-14 11:28:07 +00:00
lukem
19474db41e
Ensure calendar doesn't go past \0 in a string.
...
From Douglas Crosher <dtc@scrooge.ee.swin.oz.au> in [bin/1018]
1997-06-20 08:11:34 +00:00
christos
3917c3179d
- Makefile cleanups
1997-03-24 21:57:01 +00:00
explorer
ff34809355
Add Carl Sagan's death
1997-02-20 21:54:39 +00:00
perry
979eb7d04f
close pr-2767 -- add German Reunification Day (from Heiko Rupp)
1997-01-17 15:24:51 +00:00
perry
93933ccd04
Close pr-3115 from stephen.ma@jtec.com.au. He claims:
...
Sydney was settled by the English on 26 Jan, 1788 not 1778
1997-01-17 05:35:10 +00:00
perry
e1389b7341
Add David Packard & Konrad Zuse's deaths to calendar.birthday
...
submitted by Heiko W.Rupp.
closes pr-2448
Also, moved Alan Turing's birthday from calendar.computer to
calendar.birthday, removed duplicate Thoreau entry and cleaned up date
ordering in calendar.birthday
1997-01-17 02:32:00 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00
neil
b488cc87de
Added World AIDS Day. Which is today.
...
12/01 World AIDS Day
1995-12-01 09:42:09 +00:00
jtc
29ab121b2f
Sync with 4.4lite2
1995-09-02 05:38:38 +00:00
cgd
b661cbe2e9
fix typo in Judy Garland's name, from Kenneth Stailey in pr 1147
1995-06-20 10:03:05 +00:00
glass
e9d0e83acb
merged with 4.4Lite.
1995-03-27 08:46:11 +00:00
hpeyerl
fdecad7de9
Fix for verbal dayname parsing and support for CALENDAR_DIR
...
environment variable. Also take out a superfluous word in the
manpage.
1995-03-26 03:59:07 +00:00
cgd
7bcf44497f
invoke cpp with -P
1994-12-30 21:57:09 +00:00
cgd
749dc802ca
fix "bin/135: calendar bug", and another bug found while looking into it.
...
the reported bug was fixed with the reported fix, from Keith White
<kwhite@csi.UOttawa.CA>. The newly-found bug was fixed by me.
1994-02-22 09:46:29 +00:00
cgd
c440ffb67d
kill bogus install -d's, and clean slightly
1994-02-10 01:54:10 +00:00
jtc
41954280cb
spelling mistakes
1994-02-03 17:47:18 +00:00
cgd
156269bbe4
off-by-one fix, from fen@netcom.com (Fen Labalme, and more (from me)
1994-01-05 13:13:00 +00:00