projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
getdate.y
diff --git
a/lib/getdate.y
b/lib/getdate.y
index
d33fa06
..
44f2e19
100644
(file)
--- a/
lib/getdate.y
+++ b/
lib/getdate.y
@@
-3,7
+3,7
@@
** Originally written by Steven M. Bellovin <smb@research.att.com> while
** at the University of North Carolina at Chapel Hill. Later tweaked by
** a couple of people on Usenet. Completely overhauled by Rich $alz
** Originally written by Steven M. Bellovin <smb@research.att.com> while
** at the University of North Carolina at Chapel Hill. Later tweaked by
** a couple of people on Usenet. Completely overhauled by Rich $alz
-** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990
;
+** <rsalz@bbn.com> and Jim Berets <jberets@bbn.com> in August, 1990
.
**
** This grammar has 13 shift/reduce conflicts.
**
**
** This grammar has 13 shift/reduce conflicts.
**
@@
-347,7
+347,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelYear += $1 * $2;
}
| tYEAR_UNIT {
yyRelYear += $1 * $2;
}
| tYEAR_UNIT {
- yyRelYear
++
;
+ yyRelYear
+= $1
;
}
| tUNUMBER tMONTH_UNIT {
yyRelMonth += $1 * $2;
}
| tUNUMBER tMONTH_UNIT {
yyRelMonth += $1 * $2;
@@
-356,7
+356,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelMonth += $1 * $2;
}
| tMONTH_UNIT {
yyRelMonth += $1 * $2;
}
| tMONTH_UNIT {
- yyRelMonth
++
;
+ yyRelMonth
+= $1
;
}
| tUNUMBER tDAY_UNIT {
yyRelDay += $1 * $2;
}
| tUNUMBER tDAY_UNIT {
yyRelDay += $1 * $2;
@@
-365,7
+365,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelDay += $1 * $2;
}
| tDAY_UNIT {
yyRelDay += $1 * $2;
}
| tDAY_UNIT {
- yyRelDay
++
;
+ yyRelDay
+= $1
;
}
| tUNUMBER tHOUR_UNIT {
yyRelHour += $1 * $2;
}
| tUNUMBER tHOUR_UNIT {
yyRelHour += $1 * $2;
@@
-374,7
+374,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelHour += $1 * $2;
}
| tHOUR_UNIT {
yyRelHour += $1 * $2;
}
| tHOUR_UNIT {
- yyRelHour
++
;
+ yyRelHour
+= $1
;
}
| tUNUMBER tMINUTE_UNIT {
yyRelMinutes += $1 * $2;
}
| tUNUMBER tMINUTE_UNIT {
yyRelMinutes += $1 * $2;
@@
-383,7
+383,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelMinutes += $1 * $2;
}
| tMINUTE_UNIT {
yyRelMinutes += $1 * $2;
}
| tMINUTE_UNIT {
- yyRelMinutes
++
;
+ yyRelMinutes
+= $1
;
}
| tUNUMBER tSEC_UNIT {
yyRelSeconds += $1 * $2;
}
| tUNUMBER tSEC_UNIT {
yyRelSeconds += $1 * $2;
@@
-392,7
+392,7
@@
relunit : tUNUMBER tYEAR_UNIT {
yyRelSeconds += $1 * $2;
}
| tSEC_UNIT {
yyRelSeconds += $1 * $2;
}
| tSEC_UNIT {
- yyRelSeconds
++
;
+ yyRelSeconds
+= $1
;
}
;
}
;
@@
-493,7
+493,7
@@
static TABLE const OtherTable[] = {
{ "now", tMINUTE_UNIT, 0 },
{ "last", tUNUMBER, -1 },
{ "this", tMINUTE_UNIT, 0 },
{ "now", tMINUTE_UNIT, 0 },
{ "last", tUNUMBER, -1 },
{ "this", tMINUTE_UNIT, 0 },
- { "next", tUNUMBER,
2
},
+ { "next", tUNUMBER,
1
},
{ "first", tUNUMBER, 1 },
/* { "second", tUNUMBER, 2 }, */
{ "third", tUNUMBER, 3 },
{ "first", tUNUMBER, 1 },
/* { "second", tUNUMBER, 2 }, */
{ "third", tUNUMBER, 3 },