From: foobar <sniper@php.net> Date: Tue, 8 Nov 2005 22:45:55 +0000 (+0000) Subject: - Change paths to be relative X-Git-Tag: RELEASE_2_0_1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cf0ce29259208f02c041fd75f67cd6bed390e52;p=php - Change paths to be relative # # Derick, don't forget to move the .re file into this same directory! # # This was the 2nd last piece of making the code-coverage thing to work # properly with VPATH builds. Once Derick moves the parse_date.re # in the same directory where the generated file lives, it's done. # # Just copying it by hand in your sources in the meantime and doing # "./configure --enable-gcov && make lcov" will produce data in lcov_html/ # --- diff --git a/ext/date/lib/parse_date.c b/ext/date/lib/parse_date.c index 0882efd578..41bb2ab222 100644 --- a/ext/date/lib/parse_date.c +++ b/ext/date/lib/parse_date.c @@ -1,5 +1,5 @@ -/* Generated by re2c 0.9.10.dev on Wed Oct 19 22:39:08 2005 */ -#line 1 "resource/parse_date.re" +/* Generated by re2c 0.9.10 on Tue Nov 8 22:16:36 2005 */ +#line 1 "ext/date/lib/parse_date.re" /* +----------------------------------------------------------------------+ | PHP Version 5 | @@ -695,7 +695,7 @@ static int scan(Scanner *s) std: s->tok = cursor; s->len = 0; -#line 802 "resource/parse_date.re" +#line 802 "ext/date/lib/parse_date.re" { @@ -734,7 +734,7 @@ std: 0, 0, 0, 0, 0, 0, 0, 0, }; -#line 738 "<stdout>" +#line 738 "ext/date/lib/parse_date.c" { YYCTYPE yych; unsigned int yyaccept; @@ -819,7 +819,7 @@ yy2: yy3: YYDEBUG(3, *YYCURSOR); -#line 1300 "resource/parse_date.re" +#line 1300 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("tzcorrection | tz"); @@ -829,7 +829,7 @@ yy3: TIMELIB_DEINIT; return TIMELIB_TIMEZONE; } -#line 826 "<stdout>" +#line 826 "ext/date/lib/parse_date.c" yy4: YYDEBUG(4, *YYCURSOR); yych = *++YYCURSOR; @@ -939,13 +939,13 @@ yy7: yy8: YYDEBUG(8, *YYCURSOR); -#line 1366 "resource/parse_date.re" +#line 1366 "ext/date/lib/parse_date.re" { /* printf("unexpected character: #%d, %c ", *s->tok, *s->tok); */ s->errors++; goto std; } -#line 931 "<stdout>" +#line 931 "ext/date/lib/parse_date.c" yy9: YYDEBUG(9, *YYCURSOR); yyaccept = 0; @@ -1854,11 +1854,11 @@ yy43: yy44: YYDEBUG(44, *YYCURSOR); -#line 1355 "resource/parse_date.re" +#line 1355 "ext/date/lib/parse_date.re" { goto std; } -#line 1767 "<stdout>" +#line 1767 "ext/date/lib/parse_date.c" yy45: YYDEBUG(45, *YYCURSOR); ++YYCURSOR; @@ -1866,12 +1866,12 @@ yy45: yy46: YYDEBUG(46, *YYCURSOR); -#line 1360 "resource/parse_date.re" +#line 1360 "ext/date/lib/parse_date.re" { s->pos = cursor; s->line++; goto std; } -#line 1776 "<stdout>" +#line 1776 "ext/date/lib/parse_date.c" yy47: YYDEBUG(47, *YYCURSOR); yych = *++YYCURSOR; @@ -2329,7 +2329,7 @@ yy84: yy85: YYDEBUG(85, *YYCURSOR); -#line 1339 "resource/parse_date.re" +#line 1339 "ext/date/lib/parse_date.re" { timelib_ull i; DEBUG_OUTPUT("relative"); @@ -2344,7 +2344,7 @@ yy85: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 2166 "<stdout>" +#line 2166 "ext/date/lib/parse_date.c" yy86: YYDEBUG(86, *YYCURSOR); ++YYCURSOR; @@ -3037,12 +3037,12 @@ yy150: yy151: YYDEBUG(151, *YYCURSOR); -#line 1294 "resource/parse_date.re" +#line 1294 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("dayabbr"); goto std; } -#line 2730 "<stdout>" +#line 2730 "ext/date/lib/parse_date.c" yy152: YYDEBUG(152, *YYCURSOR); yyaccept = 1; @@ -3081,7 +3081,7 @@ yy157: yy158: YYDEBUG(158, *YYCURSOR); -#line 1277 "resource/parse_date.re" +#line 1277 "ext/date/lib/parse_date.re" { const timelib_relunit* relunit; DEBUG_OUTPUT("dayfull"); @@ -3097,7 +3097,7 @@ yy158: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 2771 "<stdout>" +#line 2771 "ext/date/lib/parse_date.c" yy159: YYDEBUG(159, *YYCURSOR); yyaccept = 1; @@ -3466,7 +3466,7 @@ yy189: yy190: YYDEBUG(190, *YYCURSOR); -#line 1260 "resource/parse_date.re" +#line 1260 "ext/date/lib/parse_date.re" { timelib_sll i; int behavior; @@ -3482,7 +3482,7 @@ yy190: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 3090 "<stdout>" +#line 3090 "ext/date/lib/parse_date.c" yy191: YYDEBUG(191, *YYCURSOR); ++YYCURSOR; @@ -9112,7 +9112,7 @@ yy508: yy509: YYDEBUG(509, *YYCURSOR); -#line 1082 "resource/parse_date.re" +#line 1082 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datetextual | datenoyear"); TIMELIB_INIT; @@ -9124,7 +9124,7 @@ yy509: TIMELIB_DEINIT; return TIMELIB_DATE_TEXT; } -#line 8083 "<stdout>" +#line 8083 "ext/date/lib/parse_date.c" yy510: YYDEBUG(510, *YYCURSOR); yych = *++YYCURSOR; @@ -9284,7 +9284,7 @@ yy526: yy527: YYDEBUG(527, *YYCURSOR); -#line 1311 "resource/parse_date.re" +#line 1311 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("dateshortwithtimeshort | dateshortwithtimelong | dateshortwithtimelongtz"); @@ -9311,7 +9311,7 @@ yy527: TIMELIB_DEINIT; return TIMELIB_SHORTDATE_WITH_TIME; } -#line 8234 "<stdout>" +#line 8234 "ext/date/lib/parse_date.c" yy528: YYDEBUG(528, *YYCURSOR); yyaccept = 7; @@ -9624,7 +9624,7 @@ yy561: yy562: YYDEBUG(562, *YYCURSOR); -#line 1056 "resource/parse_date.re" +#line 1056 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datenoday"); TIMELIB_INIT; @@ -9636,7 +9636,7 @@ yy562: TIMELIB_DEINIT; return TIMELIB_DATE_NO_DAY; } -#line 8489 "<stdout>" +#line 8489 "ext/date/lib/parse_date.c" yy563: YYDEBUG(563, *YYCURSOR); yyaccept = 6; @@ -9936,7 +9936,7 @@ yy587: yy588: YYDEBUG(588, *YYCURSOR); -#line 1191 "resource/parse_date.re" +#line 1191 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("pgtextshort"); TIMELIB_INIT; @@ -9948,7 +9948,7 @@ yy588: TIMELIB_DEINIT; return TIMELIB_PG_TEXT; } -#line 8748 "<stdout>" +#line 8748 "ext/date/lib/parse_date.c" yy589: YYDEBUG(589, *YYCURSOR); yych = *++YYCURSOR; @@ -11452,7 +11452,7 @@ yy683: yy684: YYDEBUG(684, *YYCURSOR); -#line 1245 "resource/parse_date.re" +#line 1245 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("ago"); TIMELIB_INIT; @@ -11466,7 +11466,7 @@ yy684: TIMELIB_DEINIT; return TIMELIB_AGO; } -#line 10073 "<stdout>" +#line 10073 "ext/date/lib/parse_date.c" yy685: YYDEBUG(685, *YYCURSOR); yyaccept = 1; @@ -13401,7 +13401,7 @@ yy787: yy788: YYDEBUG(788, *YYCURSOR); -#line 1095 "resource/parse_date.re" +#line 1095 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datenoyearrev"); TIMELIB_INIT; @@ -13411,7 +13411,7 @@ yy788: TIMELIB_DEINIT; return TIMELIB_DATE_TEXT; } -#line 11806 "<stdout>" +#line 11806 "ext/date/lib/parse_date.c" yy789: YYDEBUG(789, *YYCURSOR); yyaccept = 10; @@ -13521,7 +13521,7 @@ yy798: yy799: YYDEBUG(799, *YYCURSOR); -#line 886 "resource/parse_date.re" +#line 886 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("timetiny12 | timeshort12 | timelong12"); TIMELIB_INIT; @@ -13537,7 +13537,7 @@ yy799: TIMELIB_DEINIT; return TIMELIB_TIME12; } -#line 11910 "<stdout>" +#line 11910 "ext/date/lib/parse_date.c" yy800: YYDEBUG(800, *YYCURSOR); yych = *++YYCURSOR; @@ -13557,7 +13557,7 @@ yy801: yy802: YYDEBUG(802, *YYCURSOR); -#line 903 "resource/parse_date.re" +#line 903 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("timeshort24 | timelong24 | iso8601long"); @@ -13580,7 +13580,7 @@ yy802: TIMELIB_DEINIT; return TIMELIB_TIME24_WITH_ZONE; } -#line 11947 "<stdout>" +#line 11947 "ext/date/lib/parse_date.c" yy803: YYDEBUG(803, *YYCURSOR); yyaccept = 11; @@ -13823,7 +13823,7 @@ yy827: yy828: YYDEBUG(828, *YYCURSOR); -#line 1030 "resource/parse_date.re" +#line 1030 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datefull"); TIMELIB_INIT; @@ -13835,7 +13835,7 @@ yy828: TIMELIB_DEINIT; return TIMELIB_DATE_FULL; } -#line 12150 "<stdout>" +#line 12150 "ext/date/lib/parse_date.c" yy829: YYDEBUG(829, *YYCURSOR); yych = *++YYCURSOR; @@ -14470,7 +14470,7 @@ yy896: yy897: YYDEBUG(897, *YYCURSOR); -#line 1043 "resource/parse_date.re" +#line 1043 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("pointed date"); TIMELIB_INIT; @@ -14482,7 +14482,7 @@ yy897: TIMELIB_DEINIT; return TIMELIB_DATE_FULL_POINTED; } -#line 12659 "<stdout>" +#line 12659 "ext/date/lib/parse_date.c" yy898: YYDEBUG(898, *YYCURSOR); yych = *++YYCURSOR; @@ -15050,7 +15050,7 @@ yy942: yy943: YYDEBUG(943, *YYCURSOR); -#line 1017 "resource/parse_date.re" +#line 1017 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("gnudateshort"); TIMELIB_INIT; @@ -15062,7 +15062,7 @@ yy943: TIMELIB_DEINIT; return TIMELIB_ISO_DATE; } -#line 13147 "<stdout>" +#line 13147 "ext/date/lib/parse_date.c" yy944: YYDEBUG(944, *YYCURSOR); yych = *++YYCURSOR; @@ -15084,7 +15084,7 @@ yy946: yy947: YYDEBUG(947, *YYCURSOR); -#line 990 "resource/parse_date.re" +#line 990 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("americanshort | american"); TIMELIB_INIT; @@ -15098,7 +15098,7 @@ yy947: TIMELIB_DEINIT; return TIMELIB_AMERICAN; } -#line 13175 "<stdout>" +#line 13175 "ext/date/lib/parse_date.c" yy948: YYDEBUG(948, *YYCURSOR); yyaccept = 12; @@ -15320,7 +15320,7 @@ yy979: yy980: YYDEBUG(980, *YYCURSOR); -#line 1217 "resource/parse_date.re" +#line 1217 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("clf"); @@ -15338,7 +15338,7 @@ yy980: TIMELIB_DEINIT; return TIMELIB_CLF; } -#line 13349 "<stdout>" +#line 13349 "ext/date/lib/parse_date.c" yy981: YYDEBUG(981, *YYCURSOR); yyaccept = 13; @@ -15647,7 +15647,7 @@ yy1019: yy1020: YYDEBUG(1020, *YYCURSOR); -#line 1204 "resource/parse_date.re" +#line 1204 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("pgtextreverse"); TIMELIB_INIT; @@ -15659,7 +15659,7 @@ yy1020: TIMELIB_DEINIT; return TIMELIB_PG_TEXT; } -#line 13589 "<stdout>" +#line 13589 "ext/date/lib/parse_date.c" yy1021: YYDEBUG(1021, *YYCURSOR); yych = *++YYCURSOR; @@ -15792,7 +15792,7 @@ yy1031: yy1032: YYDEBUG(1032, *YYCURSOR); -#line 1236 "resource/parse_date.re" +#line 1236 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("year4"); TIMELIB_INIT; @@ -15800,7 +15800,7 @@ yy1032: TIMELIB_DEINIT; return TIMELIB_CLF; } -#line 13705 "<stdout>" +#line 13705 "ext/date/lib/parse_date.c" yy1033: YYDEBUG(1033, *YYCURSOR); yych = *++YYCURSOR; @@ -15936,7 +15936,7 @@ yy1040: yy1041: YYDEBUG(1041, *YYCURSOR); -#line 1069 "resource/parse_date.re" +#line 1069 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datenodayrev"); TIMELIB_INIT; @@ -15948,7 +15948,7 @@ yy1041: TIMELIB_DEINIT; return TIMELIB_DATE_NO_DAY; } -#line 13832 "<stdout>" +#line 13832 "ext/date/lib/parse_date.c" yy1042: YYDEBUG(1042, *YYCURSOR); yych = *++YYCURSOR; @@ -16157,7 +16157,7 @@ yy1060: yy1061: YYDEBUG(1061, *YYCURSOR); -#line 1172 "resource/parse_date.re" +#line 1172 "ext/date/lib/parse_date.re" { timelib_sll w, d; DEBUG_OUTPUT("isoweek"); @@ -16175,7 +16175,7 @@ yy1061: TIMELIB_DEINIT; return TIMELIB_ISO_WEEK; } -#line 14019 "<stdout>" +#line 14019 "ext/date/lib/parse_date.c" yy1062: YYDEBUG(1062, *YYCURSOR); ++YYCURSOR; @@ -16183,7 +16183,7 @@ yy1062: yy1063: YYDEBUG(1063, *YYCURSOR); -#line 1153 "resource/parse_date.re" +#line 1153 "ext/date/lib/parse_date.re" { timelib_sll w, d; DEBUG_OUTPUT("isoweekday"); @@ -16201,7 +16201,7 @@ yy1063: TIMELIB_DEINIT; return TIMELIB_ISO_WEEK; } -#line 14041 "<stdout>" +#line 14041 "ext/date/lib/parse_date.c" yy1064: YYDEBUG(1064, *YYCURSOR); yych = *++YYCURSOR; @@ -16270,7 +16270,7 @@ yy1066: yy1067: YYDEBUG(1067, *YYCURSOR); -#line 1140 "resource/parse_date.re" +#line 1140 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("pgydotd"); TIMELIB_INIT; @@ -16282,7 +16282,7 @@ yy1067: TIMELIB_DEINIT; return TIMELIB_PG_YEARDAY; } -#line 14114 "<stdout>" +#line 14114 "ext/date/lib/parse_date.c" yy1068: YYDEBUG(1068, *YYCURSOR); yych = *++YYCURSOR; @@ -16397,7 +16397,7 @@ yy1073: yy1074: YYDEBUG(1074, *YYCURSOR); -#line 1106 "resource/parse_date.re" +#line 1106 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("datenocolon"); TIMELIB_INIT; @@ -16408,7 +16408,7 @@ yy1074: TIMELIB_DEINIT; return TIMELIB_DATE_NOCOLON; } -#line 14222 "<stdout>" +#line 14222 "ext/date/lib/parse_date.c" yy1075: YYDEBUG(1075, *YYCURSOR); yych = *++YYCURSOR; @@ -16506,7 +16506,7 @@ yy1084: yy1085: YYDEBUG(1085, *YYCURSOR); -#line 1118 "resource/parse_date.re" +#line 1118 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("xmlrpc | xmlrpcnocolon | soap | wddx"); @@ -16527,7 +16527,7 @@ yy1085: TIMELIB_DEINIT; return TIMELIB_XMLRPC_SOAP; } -#line 14319 "<stdout>" +#line 14319 "ext/date/lib/parse_date.c" yy1086: YYDEBUG(1086, *YYCURSOR); yych = *++YYCURSOR; @@ -17130,7 +17130,7 @@ yy1175: yy1176: YYDEBUG(1176, *YYCURSOR); -#line 1005 "resource/parse_date.re" +#line 1005 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("iso8601date | iso8601dateslash | dateslash"); TIMELIB_INIT; @@ -17141,7 +17141,7 @@ yy1176: TIMELIB_DEINIT; return TIMELIB_ISO_DATE; } -#line 14751 "<stdout>" +#line 14751 "ext/date/lib/parse_date.c" yy1177: YYDEBUG(1177, *YYCURSOR); yych = *++YYCURSOR; @@ -17956,7 +17956,7 @@ yy1268: yy1269: YYDEBUG(1269, *YYCURSOR); -#line 927 "resource/parse_date.re" +#line 927 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("gnunocolon"); TIMELIB_INIT; @@ -17977,7 +17977,7 @@ yy1269: TIMELIB_DEINIT; return TIMELIB_GNU_NOCOLON; } -#line 15398 "<stdout>" +#line 15398 "ext/date/lib/parse_date.c" yy1270: YYDEBUG(1270, *YYCURSOR); yych = *++YYCURSOR; @@ -18074,7 +18074,7 @@ yy1276: yy1277: YYDEBUG(1277, *YYCURSOR); -#line 972 "resource/parse_date.re" +#line 972 "ext/date/lib/parse_date.re" { int tz_not_found; DEBUG_OUTPUT("iso8601nocolon"); @@ -18091,7 +18091,7 @@ yy1277: TIMELIB_DEINIT; return TIMELIB_ISO_NOCOLON; } -#line 15496 "<stdout>" +#line 15496 "ext/date/lib/parse_date.c" yy1278: YYDEBUG(1278, *YYCURSOR); yyaccept = 21; @@ -18388,7 +18388,7 @@ yy1301: yy1302: YYDEBUG(1302, *YYCURSOR); -#line 862 "resource/parse_date.re" +#line 862 "ext/date/lib/parse_date.re" { timelib_ull i; @@ -18411,7 +18411,7 @@ yy1302: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15760 "<stdout>" +#line 15760 "ext/date/lib/parse_date.c" yy1303: YYDEBUG(1303, *YYCURSOR); yych = *++YYCURSOR; @@ -18482,7 +18482,7 @@ yy1310: yy1311: YYDEBUG(1311, *YYCURSOR); -#line 850 "resource/parse_date.re" +#line 850 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("tomorrow"); TIMELIB_INIT; @@ -18493,7 +18493,7 @@ yy1311: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15824 "<stdout>" +#line 15824 "ext/date/lib/parse_date.c" yy1312: YYDEBUG(1312, *YYCURSOR); yych = *++YYCURSOR; @@ -18506,7 +18506,7 @@ yy1313: yy1314: YYDEBUG(1314, *YYCURSOR); -#line 840 "resource/parse_date.re" +#line 840 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("midnight | today"); TIMELIB_INIT; @@ -18515,7 +18515,7 @@ yy1314: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15840 "<stdout>" +#line 15840 "ext/date/lib/parse_date.c" yy1315: YYDEBUG(1315, *YYCURSOR); yych = *++YYCURSOR; @@ -18596,7 +18596,7 @@ yy1322: yy1323: YYDEBUG(1323, *YYCURSOR); -#line 819 "resource/parse_date.re" +#line 819 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("now"); TIMELIB_INIT; @@ -18604,7 +18604,7 @@ yy1323: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15911 "<stdout>" +#line 15911 "ext/date/lib/parse_date.c" yy1324: YYDEBUG(1324, *YYCURSOR); yych = *++YYCURSOR; @@ -18624,7 +18624,7 @@ yy1325: yy1326: YYDEBUG(1326, *YYCURSOR); -#line 828 "resource/parse_date.re" +#line 828 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("noon"); TIMELIB_INIT; @@ -18635,7 +18635,7 @@ yy1326: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15936 "<stdout>" +#line 15936 "ext/date/lib/parse_date.c" yy1327: YYDEBUG(1327, *YYCURSOR); yych = *++YYCURSOR; @@ -18693,7 +18693,7 @@ yy1334: yy1335: YYDEBUG(1335, *YYCURSOR); -#line 807 "resource/parse_date.re" +#line 807 "ext/date/lib/parse_date.re" { DEBUG_OUTPUT("yesterday"); TIMELIB_INIT; @@ -18704,10 +18704,10 @@ yy1335: TIMELIB_DEINIT; return TIMELIB_RELATIVE; } -#line 15987 "<stdout>" +#line 15987 "ext/date/lib/parse_date.c" } } -#line 1371 "resource/parse_date.re" +#line 1371 "ext/date/lib/parse_date.re" }