cvs: php4 /ext/standard php_smart_str.h

From: Date: Tue, 19 Mar 2002 12:11:47 +0000
Subject: cvs: php4 /ext/standard php_smart_str.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10412@lists.php.net to get a copy of this message
sas Tue Mar 19 07:11:47 2002 EDT Modified files: /php4/ext/standard php_smart_str.h Log: Remove trailing ; The macro can now safely be used in constructs such as if (..) foo() else bar(); Index: php4/ext/standard/php_smart_str.h diff -u php4/ext/standard/php_smart_str.h:1.16 php4/ext/standard/php_smart_str.h:1.17 --- php4/ext/standard/php_smart_str.h:1.16 Tue Mar 19 06:25:21 2002 +++ php4/ext/standard/php_smart_str.h Tue Mar 19 07:11:46 2002 @@ -24,7 +24,7 @@ #include <stdlib.h> #include <zend.h> -#define smart_str_0(x) do { if ((x)->c) { (x)->c[(x)->len] = '\0'; } } while (0); +#define smart_str_0(x) do { if ((x)->c) { (x)->c[(x)->len] = '\0'; } } while (0) #ifndef SMART_STR_PREALLOC #define SMART_STR_PREALLOC 128

« previous php.cvs (#10412) next »