OpenBSD CVS

CVS log for src/usr.bin/cvs/date.y


[BACK] Up to [local] / src / usr.bin / cvs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:10 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 20 13:39:11 2017 UTC (6 years, 10 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Add missing <time.h> header.

ok joris@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 3 00:23:45 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.23: +1 -3 lines
Diff to previous 1.23 (colored)

do not need timeb.h

Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 19 17:28:06 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.22: +5 -4 lines
Diff to previous 1.22 (colored)

Constrain the 2038 check to only when sizeof(time_t) == sizeof(int).
Adding more powerful checking is too difficult.  We'll fix this problem
by moving to 64-bit time_t.. and once we do, we don't want this code to
falsely trigger.
ok millert

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jul 31 08:54:42 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (colored)

Checking for -1 as an overflow value is pretty absurd. Returning
the unix epoch is equally absurd. Just return Start for now. We may
add overflow checks in the future.

OK xsa nicm

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 29 18:52:45 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Replace abort(), fatal(), and errx() with return -1, since date_parse
returns -1 on error.

OK nicm

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 23 21:46:05 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 23 09:11:10 2010 UTC (13 years, 9 months ago) by ray
Branch: MAIN
Changes since 1.18: +18 -33 lines
Diff to previous 1.18 (colored)

Clean up struct tm handling. Instead of calling gmtime/localtime
and making copies (among other weird dances), use reentrant versions.

Not being able to tell the time is a fatal error, so die if that
happens.

Diff originally from nicm.

OK nicm xsa

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 16 01:00:00 2008 UTC (16 years, 3 months ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.17: +4 -8 lines
Diff to previous 1.17 (colored)

* yyInput doesn't seem to contain anything meaningful at the time when
  yyerror() is called, so there's no point in printing it
* unbreak `env CFLAGS='-DTEST' make date`

ok joris@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 6 12:55:48 2007 UTC (16 years, 7 months ago) by chl
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

replace abort() by return (-1)

from ray@ suggestion
"looks good" ray@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 22 06:42:09 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored)

general includes cleanup sweep. ok joris@ niallo@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 20 06:57:54 2007 UTC (17 years, 4 months ago) by ray
Branch: MAIN
Changes since 1.14: +10 -8 lines
Diff to previous 1.14 (colored)

Prevent negative array index accesses when strlen(buff) == 0.

OK joris@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 9 15:55:55 2006 UTC (17 years, 6 months ago) by xsa
Branch: MAIN
Changes since 1.13: +7 -11 lines
Diff to previous 1.13 (colored)

sync with usr.bin/rcs version.

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 3 14:26:13 2006 UTC (18 years ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.12: +4 -7 lines
Diff to previous 1.12 (colored)

Use xasprintf and xfree.

``But i thought it already went in...'' xsa@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 29 04:42:46 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.11: +19 -27 lines
Diff to previous 1.11 (colored)

Remove dead code.

OK niallo@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 2 08:11:56 2006 UTC (18 years, 4 months ago) by xsa
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.10: +2 -10 lines
Diff to previous 1.10 (colored)

#include's cleanup; ok joris@ niallo@.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 7 21:47:32 2005 UTC (18 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.9: +13 -13 lines
Diff to previous 1.9 (colored)

knf and spacing, ok joris@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 25 19:11:34 2005 UTC (18 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.8: +17 -10 lines
Diff to previous 1.8 (colored)

Produce more clear error message parsing date strings. ok joris@

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 20 17:15:49 2005 UTC (19 years ago) by jfb
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.7: +14 -15 lines
Diff to previous 1.7 (colored)

* missing prototype for lookup()
* remove crufty VMS-specific code
* sprinkle some magic knf dust

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 19 04:17:24 2005 UTC (19 years ago) by jfb
Branch: MAIN
Changes since 1.6: +7 -6 lines
Diff to previous 1.6 (colored)

use the date parsing code from date.y and fix timestamps on newly
created files so they match the values found in the corresponding
entries, otherwise all files appear as modified

ok joris

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 18 21:55:13 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)



missing prototype for get_date();

from deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 30 16:41:07 2005 UTC (19 years, 1 month ago) by joris
Branch: MAIN
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)



allow this to be compiled on its own for testing.

ok jfb@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 28 22:40:58 2005 UTC (19 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.3: +14 -18 lines
Diff to previous 1.3 (colored)

alignment

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 24 15:40:43 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.2: +99 -103 lines
Diff to previous 1.2 (colored)

more cleanup and knf

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 24 03:07:04 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN
Changes since 1.1: +16 -6 lines
Diff to previous 1.1 (colored)

add missing prototypes for standard yacc functions and make yyerror()
accept a format with variable arguments

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 23 20:00:18 2005 UTC (19 years, 2 months ago) by jfb
Branch: MAIN

public domain yacc date parser with a first round of knf

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.