Skip to content

Commit

Permalink
- Fixed a regression with "last saturday"
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Rethans committed Jun 16, 2005
1 parent faacd7f commit 7c26455
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions ext/date/lib/parse_date.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by re2c 0.9.8.dev on Wed Jun 15 12:56:03 2005 */
/* Generated by re2c 0.9.8.dev on Thu Jun 16 15:24:58 2005 */
#line 1 "parse_date.re"
/*
+----------------------------------------------------------------------+
Expand Down Expand Up @@ -528,11 +528,11 @@ static long timelib_parse_tz_cor(char **ptr)
return 0;
}

static long timelib_lookup_relative_text(char **ptr)
static timelib_sll timelib_lookup_relative_text(char **ptr)
{
char *word;
char *begin = *ptr, *end;
long value = 0;
timelib_sll value = 0;
const timelib_lookup_table *tp;

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

static long timelib_get_relative_text(char **ptr)
static timelib_sll timelib_get_relative_text(char **ptr)
{
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
++*ptr;
Expand Down Expand Up @@ -623,7 +623,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
return value;
}

static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
{
const timelib_relunit* relunit;

Expand Down Expand Up @@ -3128,7 +3128,7 @@ static int scan(Scanner *s)

#line 1226 "parse_date.re"
{
long i;
timelib_sll i;

TIMELIB_INIT;
TIMELIB_HAVE_RELATIVE();
Expand Down
10 changes: 5 additions & 5 deletions ext/date/lib/parse_date.re
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ static long timelib_parse_tz_cor(char **ptr)
return 0;
}

static long timelib_lookup_relative_text(char **ptr)
static timelib_sll timelib_lookup_relative_text(char **ptr)
{
char *word;
char *begin = *ptr, *end;
long value = 0;
timelib_sll value = 0;
const timelib_lookup_table *tp;

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

static long timelib_get_relative_text(char **ptr)
static timelib_sll timelib_get_relative_text(char **ptr)
{
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
++*ptr;
Expand Down Expand Up @@ -621,7 +621,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
return value;
}

static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
{
const timelib_relunit* relunit;

Expand Down Expand Up @@ -1224,7 +1224,7 @@ relativetext = (reltextnumber space reltextunit)+;

relativetext
{
long i;
timelib_sll i;

TIMELIB_INIT;
TIMELIB_HAVE_RELATIVE();
Expand Down
10 changes: 5 additions & 5 deletions ext/date/lib/resource/parse_date.re
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ static long timelib_parse_tz_cor(char **ptr)
return 0;
}

static long timelib_lookup_relative_text(char **ptr)
static timelib_sll timelib_lookup_relative_text(char **ptr)
{
char *word;
char *begin = *ptr, *end;
long value = 0;
timelib_sll value = 0;
const timelib_lookup_table *tp;

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

static long timelib_get_relative_text(char **ptr)
static timelib_sll timelib_get_relative_text(char **ptr)
{
while (**ptr == ' ' || **ptr == '-' || **ptr == '/') {
++*ptr;
Expand Down Expand Up @@ -621,7 +621,7 @@ static const timelib_relunit* timelib_lookup_relunit(char **ptr)
return value;
}

static void timelib_set_relative(char **ptr, timelib_ull amount, Scanner *s)
static void timelib_set_relative(char **ptr, timelib_sll amount, Scanner *s)
{
const timelib_relunit* relunit;

Expand Down Expand Up @@ -1224,7 +1224,7 @@ relativetext = (reltextnumber space reltextunit)+;

relativetext
{
long i;
timelib_sll i;

TIMELIB_INIT;
TIMELIB_HAVE_RELATIVE();
Expand Down

0 comments on commit 7c26455

Please sign in to comment.