cvs: php4 /ext/standard parsedate.y
| From: | Zeev Suraski | Date: | Tue, 22 Aug 2000 20:59:27 +0000 |
| Subject: | cvs: php4 /ext/standard parsedate.y | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1331@lists.php.net to get a copy of this message | ||
zeev Tue Aug 22 13:59:27 2000 EDT
Modified files:
/php4/ext/standard parsedate.y
Log:
'const' is problematic in code in the final section of a Bison file (Bison defines
it away)
Index: php4/ext/standard/parsedate.y
diff -u php4/ext/standard/parsedate.y:1.22 php4/ext/standard/parsedate.y:1.23
--- php4/ext/standard/parsedate.y:1.22 Mon Aug 21 05:56:51 2000
+++ php4/ext/standard/parsedate.y Tue Aug 22 13:59:26 2000
@@ -452,7 +452,7 @@
%%
-time_t get_date (const char *p, const time_t *now);
+time_t get_date (char *p, time_t *now);
#ifndef PHP_WIN32
extern struct tm *gmtime();
@@ -903,8 +903,7 @@
+ (a->tm_sec - b->tm_sec));
}
-time_t
-parse_date (const char *p, const time_t *now)
+time_t parse_date(char *p, time_t *now)
{
struct tm tm, tm0, *tmp;
time_t Start;