cvs: php4 /ext/gd gd.c
| From: | Jani Taskinen | Date: | Thu, 20 Mar 2003 01:17:05 +0000 |
| Subject: | cvs: php4 /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19702@lists.php.net to get a copy of this message | ||
sniper Wed Mar 19 20:17:05 2003 EDT
Modified files:
/php4/ext/gd gd.c
Log:
CS fix
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.258 php4/ext/gd/gd.c:1.259
--- php4/ext/gd/gd.c:1.258 Wed Mar 19 20:12:57 2003
+++ php4/ext/gd/gd.c Wed Mar 19 20:17:05 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.258 2003/03/20 01:12:57 sniper Exp $ */
+/* $Id: gd.c,v 1.259 2003/03/20 01:17:05 sniper Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1483,13 +1483,13 @@
/* needs to be malloc (persistent) - GD will free() it later */
buff_size = php_stream_copy_to_mem(stream, &buff, PHP_STREAM_COPY_ALL, 1);
- if(!buff_size) {
+ if (!buff_size) {
php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot read image data");
goto out_err;
}
io_ctx = gdNewDynamicCtx(buff_size, buff);
- if(!io_ctx) {
+ if (!io_ctx) {
php_error_docref(NULL TSRMLS_CC, E_WARNING,"Cannot allocate GD IO context");
goto out_err;
}
@@ -1678,7 +1678,7 @@
RETURN_FALSE;
}
- switch(image_type) {
+ switch (image_type) {
case PHP_GDIMG_CONVERT_WBM:
if (q < 0 || q > 255) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It
must be between 0 and 255", q);
@@ -1920,7 +1920,7 @@
convert_to_long_ex(y);
#if HAVE_LIBGD20
- if(gdImageTrueColor(im)) {
+ if (gdImageTrueColor(im)) {
if (im->tpixels && gdImageBoundsSafe(im, Z_LVAL_PP(x), Z_LVAL_PP(y))) {
RETURN_LONG(gdImageTrueColorPixel(im, Z_LVAL_PP(x), Z_LVAL_PP(y)));
} else {
@@ -2732,7 +2732,7 @@
font = php_find_gd_font(size);
- switch(mode) {
+ switch (mode) {
case 0:
gdImageChar(im, font, x, y, ch, col);
break;