Re: cvs: php4 /ext/standard fsock.c
| From: | Andi Gutmans | Date: | Sat, 18 Aug 2001 09:18:03 +0000 |
| Subject: | Re: cvs: php4 /ext/standard fsock.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-6931@lists.php.net to get a copy of this message | ||
Up to today we have actually indented the case statements. Personally I think it's more readable and as most code in PHP is this way I think it should stay like this.
Andi
At 08:43 AM 8/18/2001 +0000, Sterling Hughes wrote:
sterling Sat Aug 18 04:43:48 2001 EDTModified files:/php4/ext/standard fsock.cLog: K&R format changes Index: php4/ext/standard/fsock.c diff -u php4/ext/standard/fsock.c:1.78 php4/ext/standard/fsock.c:1.79--- php4/ext/standard/fsock.c:1.78 Fri Aug 17 03:07:34 2001+++ php4/ext/standard/fsock.c Sat Aug 18 04:43:47 2001 @@ -18,7 +18,7 @@+----------------------------------------------------------------------+*/ -/* $Id: fsock.c,v 1.78 2001/08/17 07:07:34 sterling Exp $ */ +/* $Id: fsock.c,v 1.79 2001/08/18 08:43:47 sterling Exp $ */ /* Synced with php 3.0 revision 1.121 1999-06-18 [ssb] */ /* Synced with php 3.0 revision 1.133 1999-07-21 [sas] */ @@ -174,20 +174,20 @@WRONG_PARAM_COUNT; } switch(arg_count) { - case 5: - convert_to_double_ex(args[4]); - conv = (unsigned long) (Z_DVAL_PP(args[4]) * 1000000.0); - timeout.tv_sec = conv / 1000000; - timeout.tv_usec = conv % 1000000; - /* fall-through */ - case 4: - zval_ptr_dtor(args[3]); - ZVAL_STRING(*args[3], "", 1); - /* fall-through */ - case 3: - zval_ptr_dtor(args[2]); - ZVAL_LONG(*args[2], 0); - break; + case 5: + convert_to_double_ex(args[4]); + conv = (unsigned long) (Z_DVAL_PP(args[4]) * 1000000.0); + timeout.tv_sec = conv / 1000000; + timeout.tv_usec = conv % 1000000; + /* fall-through */ + case 4: + zval_ptr_dtor(args[3]); + ZVAL_STRING(*args[3], "", 1); + /* fall-through */ + case 3: + zval_ptr_dtor(args[2]); + ZVAL_LONG(*args[2], 0); + break; } convert_to_string_ex(args[0]); convert_to_long_ex(args[1]);-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net