Skip to content

Commit 7c26455

Browse files
author
Derick Rethans
committed
- Fixed a regression with "last saturday"
1 parent faacd7f commit 7c26455

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

ext/date/lib/parse_date.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by re2c 0.9.8.dev on Wed Jun 15 12:56:03 2005 */
1+
/* Generated by re2c 0.9.8.dev on Thu Jun 16 15:24:58 2005 */
22
#line 1 "parse_date.re"
33
/*
44
+----------------------------------------------------------------------+
@@ -528,11 +528,11 @@ static long timelib_parse_tz_cor(char **ptr)
528528
return 0;
529529
}
530530

531-
static long timelib_lookup_relative_text(char **ptr)
531+
static timelib_sll timelib_lookup_relative_text(char **ptr)
532532
{
533533
char *word;
534534
char *begin = *ptr, *end;
535-
long value = 0;
535+
timelib_sll value = 0;
536536
const timelib_lookup_table *tp;
537537

538538
while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
@@ -552,7 +552,7 @@ static long timelib_lookup_relative_text(char **ptr)
552552
return value;
553553
}
554554

555-
static long timelib_get_relative_text(char **ptr)
555+
static timelib_sll timelib_get_relative_text(char **ptr)
556556
{
557557
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
558558
++*ptr;
@@ -623,7 +623,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
623623
return value;
624624
}
625625

626-
static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
626+
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
627627
{
628628
const timelib_relunit* relunit;
629629

@@ -3128,7 +3128,7 @@ static int scan(Scanner *s)
31283128

31293129
#line 1226 "parse_date.re"
31303130
{
3131-
long i;
3131+
timelib_sll i;
31323132

31333133
TIMELIB_INIT;
31343134
TIMELIB_HAVE_RELATIVE();

ext/date/lib/parse_date.re

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@ static long timelib_parse_tz_cor(char **ptr)
526526
return 0;
527527
}
528528

529-
static long timelib_lookup_relative_text(char **ptr)
529+
static timelib_sll timelib_lookup_relative_text(char **ptr)
530530
{
531531
char *word;
532532
char *begin = *ptr, *end;
533-
long value = 0;
533+
timelib_sll value = 0;
534534
const timelib_lookup_table *tp;
535535

536536
while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
@@ -550,7 +550,7 @@ static long timelib_lookup_relative_text(char **ptr)
550550
return value;
551551
}
552552

553-
static long timelib_get_relative_text(char **ptr)
553+
static timelib_sll timelib_get_relative_text(char **ptr)
554554
{
555555
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
556556
++*ptr;
@@ -621,7 +621,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
621621
return value;
622622
}
623623

624-
static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
624+
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
625625
{
626626
const timelib_relunit* relunit;
627627

@@ -1224,7 +1224,7 @@ relativetext = (reltextnumber space reltextunit)+;
12241224

12251225
relativetext
12261226
{
1227-
long i;
1227+
timelib_sll i;
12281228

12291229
TIMELIB_INIT;
12301230
TIMELIB_HAVE_RELATIVE();

ext/date/lib/resource/parse_date.re

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@ static long timelib_parse_tz_cor(char **ptr)
526526
return 0;
527527
}
528528

529-
static long timelib_lookup_relative_text(char **ptr)
529+
static timelib_sll timelib_lookup_relative_text(char **ptr)
530530
{
531531
char *word;
532532
char *begin = *ptr, *end;
533-
long value = 0;
533+
timelib_sll value = 0;
534534
const timelib_lookup_table *tp;
535535

536536
while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) {
@@ -550,7 +550,7 @@ static long timelib_lookup_relative_text(char **ptr)
550550
return value;
551551
}
552552

553-
static long timelib_get_relative_text(char **ptr)
553+
static timelib_sll timelib_get_relative_text(char **ptr)
554554
{
555555
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
556556
++*ptr;
@@ -621,7 +621,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
621621
return value;
622622
}
623623

624-
static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
624+
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
625625
{
626626
const timelib_relunit* relunit;
627627

@@ -1224,7 +1224,7 @@ relativetext = (reltextnumber space reltextunit)+;
12241224

12251225
relativetext
12261226
{
1227-
long i;
1227+
timelib_sll i;
12281228

12291229
TIMELIB_INIT;
12301230
TIMELIB_HAVE_RELATIVE();

0 commit comments

Comments
 (0)