cvs: php4 /ext/gd gd.c
| From: | Sebastian Bergmann | Date: | Wed, 26 Mar 2003 06:30:45 +0000 |
| Subject: | cvs: php4 /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19785@lists.php.net to get a copy of this message | ||
sebastian Wed Mar 26 01:30:45 2003 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Eliminate TSRMLS_FETCH() call in php_find_gd_font().
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.259 php4/ext/gd/gd.c:1.260
--- php4/ext/gd/gd.c:1.259 Wed Mar 19 20:17:05 2003
+++ php4/ext/gd/gd.c Wed Mar 26 01:30:45 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.259 2003/03/20 01:17:05 sniper Exp $ */
+/* $Id: gd.c,v 1.260 2003/03/26 06:30:45 sebastian Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -2591,11 +2591,10 @@
/* {{{ php_find_gd_font
*/
-static gdFontPtr php_find_gd_font(int size)
+static gdFontPtr php_find_gd_font(int size TSRMLS_DC)
{
gdFontPtr font;
int ind_type;
- TSRMLS_FETCH();
switch (size) {
case 1:
@@ -2644,7 +2643,7 @@
convert_to_long_ex(SIZE);
- font = php_find_gd_font(Z_LVAL_PP(SIZE));
+ font = php_find_gd_font(Z_LVAL_PP(SIZE) TSRMLS_CC);
RETURN_LONG(arg ? font->h : font->w);
}
/* }}} */
@@ -2730,7 +2729,7 @@
x = Z_LVAL_PP(X);
size = Z_LVAL_PP(SIZE);
- font = php_find_gd_font(size);
+ font = php_find_gd_font(size TSRMLS_CC);
switch (mode) {
case 0: