mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Always create the file with correct paths (gdb likes it better like this)
This commit is contained in:
parent
19b6ffed3c
commit
45ae792d08
3 changed files with 43 additions and 41 deletions
|
@ -2,4 +2,5 @@ Regenerating Parser
|
|||
===================
|
||||
|
||||
Make sure you use re2c 0.9.8dev or higher:
|
||||
/dat/dev/sf/re2c/re2c -d -b parse_date.re > ../parse_date.c
|
||||
|
||||
# re2c -d -b resource/parse_date.re > parse_date.c
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Generated by re2c 0.9.8.dev on Sun Jul 3 23:31:59 2005 */
|
||||
#line 1 "parse_date.re"
|
||||
/* Generated by re2c 0.9.8 on Mon Jul 4 03:23:06 2005 */
|
||||
#line 1 "resource/parse_date.re"
|
||||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP Version 5 |
|
||||
|
@ -775,7 +775,7 @@ static int scan(Scanner *s)
|
|||
std:
|
||||
s->tok = cursor;
|
||||
s->len = 0;
|
||||
#line 879 "parse_date.re"
|
||||
#line 879 "resource/parse_date.re"
|
||||
|
||||
|
||||
{
|
||||
|
@ -899,7 +899,7 @@ yy2:
|
|||
yy3:
|
||||
YYDEBUG(3, *YYCURSOR);
|
||||
|
||||
#line 1325 "parse_date.re"
|
||||
#line 1325 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
TIMELIB_INIT;
|
||||
|
@ -994,7 +994,7 @@ yy6:
|
|||
yy7:
|
||||
YYDEBUG(7, *YYCURSOR);
|
||||
|
||||
#line 1389 "parse_date.re"
|
||||
#line 1389 "resource/parse_date.re"
|
||||
{
|
||||
/* printf("unexpected character: #%d, %c ", *s->tok, *s->tok); */
|
||||
s->errors++;
|
||||
|
@ -1901,7 +1901,7 @@ yy43:
|
|||
yy44:
|
||||
YYDEBUG(44, *YYCURSOR);
|
||||
|
||||
#line 1378 "parse_date.re"
|
||||
#line 1378 "resource/parse_date.re"
|
||||
{
|
||||
goto std;
|
||||
}
|
||||
|
@ -1913,7 +1913,7 @@ yy45:
|
|||
yy46:
|
||||
YYDEBUG(46, *YYCURSOR);
|
||||
|
||||
#line 1383 "parse_date.re"
|
||||
#line 1383 "resource/parse_date.re"
|
||||
{
|
||||
s->pos = cursor; s->line++;
|
||||
goto std;
|
||||
|
@ -2311,7 +2311,7 @@ yy84:
|
|||
yy85:
|
||||
YYDEBUG(85, *YYCURSOR);
|
||||
|
||||
#line 1362 "parse_date.re"
|
||||
#line 1362 "resource/parse_date.re"
|
||||
{
|
||||
timelib_ull i;
|
||||
|
||||
|
@ -2956,7 +2956,7 @@ yy150:
|
|||
yy151:
|
||||
YYDEBUG(151, *YYCURSOR);
|
||||
|
||||
#line 1320 "parse_date.re"
|
||||
#line 1320 "resource/parse_date.re"
|
||||
{
|
||||
goto std;
|
||||
}
|
||||
|
@ -2999,7 +2999,7 @@ yy157:
|
|||
yy158:
|
||||
YYDEBUG(158, *YYCURSOR);
|
||||
|
||||
#line 1304 "parse_date.re"
|
||||
#line 1304 "resource/parse_date.re"
|
||||
{
|
||||
const timelib_relunit* relunit;
|
||||
|
||||
|
@ -3384,7 +3384,7 @@ yy190:
|
|||
yy191:
|
||||
YYDEBUG(191, *YYCURSOR);
|
||||
|
||||
#line 1288 "parse_date.re"
|
||||
#line 1288 "resource/parse_date.re"
|
||||
{
|
||||
timelib_sll i;
|
||||
|
||||
|
@ -5615,7 +5615,7 @@ yy386:
|
|||
yy387:
|
||||
YYDEBUG(387, *YYCURSOR);
|
||||
|
||||
#line 1114 "parse_date.re"
|
||||
#line 1114 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -5666,7 +5666,7 @@ yy392:
|
|||
yy393:
|
||||
YYDEBUG(393, *YYCURSOR);
|
||||
|
||||
#line 1138 "parse_date.re"
|
||||
#line 1138 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -5766,7 +5766,7 @@ yy404:
|
|||
yy405:
|
||||
YYDEBUG(405, *YYCURSOR);
|
||||
|
||||
#line 1335 "parse_date.re"
|
||||
#line 1335 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
TIMELIB_INIT;
|
||||
|
@ -6159,7 +6159,7 @@ yy449:
|
|||
yy450:
|
||||
YYDEBUG(450, *YYCURSOR);
|
||||
|
||||
#line 1232 "parse_date.re"
|
||||
#line 1232 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -7631,7 +7631,7 @@ yy554:
|
|||
yy555:
|
||||
YYDEBUG(555, *YYCURSOR);
|
||||
|
||||
#line 1274 "parse_date.re"
|
||||
#line 1274 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
s->time->relative.y = 0 - s->time->relative.y;
|
||||
|
@ -9439,7 +9439,7 @@ yy667:
|
|||
yy668:
|
||||
YYDEBUG(668, *YYCURSOR);
|
||||
|
||||
#line 966 "parse_date.re"
|
||||
#line 966 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
DEBUG_OUTPUT("timeshort24 | timelong24 | iso8601long");
|
||||
|
@ -9589,7 +9589,7 @@ yy682:
|
|||
yy683:
|
||||
YYDEBUG(683, *YYCURSOR);
|
||||
|
||||
#line 951 "parse_date.re"
|
||||
#line 951 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("timeshort12 | timelong12");
|
||||
TIMELIB_INIT;
|
||||
|
@ -9713,7 +9713,7 @@ yy695:
|
|||
yy696:
|
||||
YYDEBUG(696, *YYCURSOR);
|
||||
|
||||
#line 1090 "parse_date.re"
|
||||
#line 1090 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -10091,7 +10091,7 @@ yy754:
|
|||
yy755:
|
||||
YYDEBUG(755, *YYCURSOR);
|
||||
|
||||
#line 1102 "parse_date.re"
|
||||
#line 1102 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -10474,7 +10474,7 @@ yy799:
|
|||
yy800:
|
||||
YYDEBUG(800, *YYCURSOR);
|
||||
|
||||
#line 1078 "parse_date.re"
|
||||
#line 1078 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -10507,7 +10507,7 @@ yy803:
|
|||
yy804:
|
||||
YYDEBUG(804, *YYCURSOR);
|
||||
|
||||
#line 1053 "parse_date.re"
|
||||
#line 1053 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -10742,7 +10742,7 @@ yy836:
|
|||
yy837:
|
||||
YYDEBUG(837, *YYCURSOR);
|
||||
|
||||
#line 1256 "parse_date.re"
|
||||
#line 1256 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
TIMELIB_INIT;
|
||||
|
@ -11071,7 +11071,7 @@ yy876:
|
|||
yy877:
|
||||
YYDEBUG(877, *YYCURSOR);
|
||||
|
||||
#line 1244 "parse_date.re"
|
||||
#line 1244 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -11328,7 +11328,7 @@ yy896:
|
|||
yy897:
|
||||
YYDEBUG(897, *YYCURSOR);
|
||||
|
||||
#line 1126 "parse_date.re"
|
||||
#line 1126 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -11493,7 +11493,7 @@ yy916:
|
|||
yy917:
|
||||
YYDEBUG(917, *YYCURSOR);
|
||||
|
||||
#line 1213 "parse_date.re"
|
||||
#line 1213 "resource/parse_date.re"
|
||||
{
|
||||
timelib_sll w, d;
|
||||
|
||||
|
@ -11519,7 +11519,7 @@ yy918:
|
|||
yy919:
|
||||
YYDEBUG(919, *YYCURSOR);
|
||||
|
||||
#line 1194 "parse_date.re"
|
||||
#line 1194 "resource/parse_date.re"
|
||||
{
|
||||
timelib_sll w, d;
|
||||
|
||||
|
@ -11570,7 +11570,7 @@ yy922:
|
|||
yy923:
|
||||
YYDEBUG(923, *YYCURSOR);
|
||||
|
||||
#line 1182 "parse_date.re"
|
||||
#line 1182 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -11657,7 +11657,7 @@ yy929:
|
|||
yy930:
|
||||
YYDEBUG(930, *YYCURSOR);
|
||||
|
||||
#line 1150 "parse_date.re"
|
||||
#line 1150 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -11735,7 +11735,7 @@ yy940:
|
|||
yy941:
|
||||
YYDEBUG(941, *YYCURSOR);
|
||||
|
||||
#line 1161 "parse_date.re"
|
||||
#line 1161 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
TIMELIB_INIT;
|
||||
|
@ -12436,7 +12436,7 @@ yy1034:
|
|||
yy1035:
|
||||
YYDEBUG(1035, *YYCURSOR);
|
||||
|
||||
#line 1067 "parse_date.re"
|
||||
#line 1067 "resource/parse_date.re"
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
|
@ -13229,7 +13229,7 @@ yy1115:
|
|||
yy1116:
|
||||
YYDEBUG(1116, *YYCURSOR);
|
||||
|
||||
#line 990 "parse_date.re"
|
||||
#line 990 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("gnunocolon");
|
||||
TIMELIB_INIT;
|
||||
|
@ -13323,7 +13323,7 @@ yy1123:
|
|||
yy1124:
|
||||
YYDEBUG(1124, *YYCURSOR);
|
||||
|
||||
#line 1035 "parse_date.re"
|
||||
#line 1035 "resource/parse_date.re"
|
||||
{
|
||||
int tz_not_found;
|
||||
DEBUG_OUTPUT("iso8601nocolon");
|
||||
|
@ -13524,7 +13524,7 @@ yy1140:
|
|||
yy1141:
|
||||
YYDEBUG(1141, *YYCURSOR);
|
||||
|
||||
#line 927 "parse_date.re"
|
||||
#line 927 "resource/parse_date.re"
|
||||
{
|
||||
timelib_ull i;
|
||||
|
||||
|
@ -13618,7 +13618,7 @@ yy1149:
|
|||
yy1150:
|
||||
YYDEBUG(1150, *YYCURSOR);
|
||||
|
||||
#line 915 "parse_date.re"
|
||||
#line 915 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("tomorrow");
|
||||
TIMELIB_INIT;
|
||||
|
@ -13642,7 +13642,7 @@ yy1152:
|
|||
yy1153:
|
||||
YYDEBUG(1153, *YYCURSOR);
|
||||
|
||||
#line 905 "parse_date.re"
|
||||
#line 905 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("today");
|
||||
TIMELIB_INIT;
|
||||
|
@ -13685,7 +13685,7 @@ yy1155:
|
|||
yy1156:
|
||||
YYDEBUG(1156, *YYCURSOR);
|
||||
|
||||
#line 896 "parse_date.re"
|
||||
#line 896 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("now");
|
||||
TIMELIB_INIT;
|
||||
|
@ -13751,7 +13751,7 @@ yy1164:
|
|||
yy1165:
|
||||
YYDEBUG(1165, *YYCURSOR);
|
||||
|
||||
#line 884 "parse_date.re"
|
||||
#line 884 "resource/parse_date.re"
|
||||
{
|
||||
DEBUG_OUTPUT("yesterday");
|
||||
TIMELIB_INIT;
|
||||
|
@ -13765,7 +13765,7 @@ yy1165:
|
|||
#line 11407 "<stdout>"
|
||||
}
|
||||
}
|
||||
#line 1394 "parse_date.re"
|
||||
#line 1394 "resource/parse_date.re"
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -2,4 +2,5 @@ Regenerating Parser
|
|||
===================
|
||||
|
||||
Make sure you use re2c 0.9.8dev or higher:
|
||||
/dat/dev/sf/re2c/re2c -d -b parse_date.re > ../parse_date.c
|
||||
|
||||
# re2c -d -b resource/parse_date.re > parse_date.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue