derick Fri Jul 11 08:42:11 2008 UTC
Modified files:
/php-src/ext/date/lib parse_date.c parse_date.re
Log:
- Fixed a compiler warning - the code didn't make much sense.
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.c?r1=1.91&r2=1.92&diff_format=u
Index: php-src/ext/date/lib/parse_date.c
diff -u php-src/ext/date/lib/parse_date.c:1.91
php-src/ext/date/lib/parse_date.c:1.92
--- php-src/ext/date/lib/parse_date.c:1.91 Tue Jul 8 20:23:38 2008
+++ php-src/ext/date/lib/parse_date.c Fri Jul 11 08:42:10 2008
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Tue Jul 8 22:21:57 2008 */
+/* Generated by re2c 0.13.5 on Fri Jul 11 10:41:19 2008 */
#line 1 "ext/date/lib/parse_date.re"
/*
+----------------------------------------------------------------------+
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_date.c,v 1.91 2008/07/08 20:23:38 derick Exp $ */
+/* $Id: parse_date.c,v 1.92 2008/07/11 08:42:10 derick Exp $ */
#include "timelib.h"
@@ -23410,11 +23410,8 @@
switch (*fptr) {
case 'D': /* three letter day */
case 'l': /* full day */
- tmp = timelib_lookup_relunit((char **) &ptr);
- if (!tmp) {
+ if (!timelib_lookup_relunit((char **) &ptr)) {
add_pbf_error(s, "A textual day could
not be found", string, begin);
- } else {
- s->time->m = tmp;
}
break;
case 'd': /* two digit day, with leading zero */
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.re?r1=1.82&r2=1.83&diff_format=u
Index: php-src/ext/date/lib/parse_date.re
diff -u php-src/ext/date/lib/parse_date.re:1.82
php-src/ext/date/lib/parse_date.re:1.83
--- php-src/ext/date/lib/parse_date.re:1.82 Tue Jul 8 20:23:38 2008
+++ php-src/ext/date/lib/parse_date.re Fri Jul 11 08:42:11 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_date.re,v 1.82 2008/07/08 20:23:38 derick Exp $ */
+/* $Id: parse_date.re,v 1.83 2008/07/11 08:42:11 derick Exp $ */
#include "timelib.h"
@@ -1820,11 +1820,8 @@
switch (*fptr) {
case 'D': /* three letter day */
case 'l': /* full day */
- tmp = timelib_lookup_relunit((char **) &ptr);
- if (!tmp) {
+ if (!timelib_lookup_relunit((char **) &ptr)) {
add_pbf_error(s, "A textual day could
not be found", string, begin);
- } else {
- s->time->m = tmp;
}
break;
case 'd': /* two digit day, with leading zero */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php