diff options
| author | Sebastian Bergmann <sebastian@php.net> | 2003-03-26 06:30:45 +0000 |
|---|---|---|
| committer | Sebastian Bergmann <sebastian@php.net> | 2003-03-26 06:30:45 +0000 |
| commit | a9b479612f4249e65bf935fa816502c065c960e4 (patch) | |
| tree | 2340114ead7a0025e15fefbc545a534232e84a80 | |
| parent | 7c86ea761dd26169f80f7b5da0bbd054676112dc (diff) | |
| download | php-git-a9b479612f4249e65bf935fa816502c065c960e4.tar.gz | |
Eliminate TSRMLS_FETCH() call in php_find_gd_font().
| -rw-r--r-- | ext/gd/gd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 0169844677..eaa359e05e 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2591,11 +2591,10 @@ PHP_FUNCTION(imagefilledpolygon) /* {{{ 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 @@ static void php_imagefontsize(INTERNAL_FUNCTION_PARAMETERS, int arg) 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 @@ static void php_imagechar(INTERNAL_FUNCTION_PARAMETERS, int mode) 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: |
